有个数据库连接设计的问题想请教大家
#1963
-
我有一个db服务,并且想要与数据库建立n条连接 方案一: 方案二: 有点疑问的是:
不知道哪个方案更好呢?谢谢大家! |
Beta Was this translation helpful? Give feedback.
Answered by
huahua132
Jul 27, 2024
Replies: 1 comment 3 replies
-
开多个服务吧,多开可以利用到多核优势。 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
JavenLaw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
开多个服务吧,多开可以利用到多核优势。
调用db只是协程挂起了,后续请求还会处理