7

mongodb 连接加上 auth 认证后,数据库切换会花掉 0.5 秒 ,多个数据库间切换时会很慢...

 2 years ago
source link: https://www.v2ex.com/t/806007
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  MongoDB

mongodb 连接加上 auth 认证后,数据库切换会花掉 0.5 秒 ,多个数据库间切换时会很慢。

  sunhk25 · 5 小时 2 分钟前 · 139 次点击
有很多数据库,需要切换来统计每个 DB 的数据。
没加认证时很快( 0.0 秒级),但是加上 auth 后每个 DB 的切换都会花去 0.5 秒左右。
roles = root,readWriteAnyDatabase 都试了下,结果都一样。
请问什么参数设置课题提高速度吗。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK