-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问下mongodb的db.Ref建立了好多和MongoDB的连接,只有一个玩家,不应该只建立少量连接吗? #116
Comments
实际连接数是可以配置的。 |
这个是数据库连接数,和玩家数量没关系。不是一个玩家一个数据库连接。 |
原理就是,如果有 20 个数据库连接,然后有 1000 个用户,这时候会尽量让每个数据库连接服务 50 个用户。 |
多谢解答 |
话说 1个数据库链接,处理多少个用户,比较好? @name5566 |
可以实际测试决定。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: