开发者

How many collections are possible in a MongoDB without losing performance?

开发者 https://www.devze.com 2023-04-07 00:55 出处:网络
I saw that by default, a MongoDB 开发者_StackOverflow社区has 24,000 collections available with a 16MB .ns file. If I increase that to 2GB (the max), can I then get 3,000,000 collections in a DB? Will

I saw that by default, a MongoDB 开发者_StackOverflow社区has 24,000 collections available with a 16MB .ns file. If I increase that to 2GB (the max), can I then get 3,000,000 collections in a DB? Will there be any substantial performance decrease?


According to documentation large number of collections will not affect performance (almost not).

having a large number of collections has no significant performance penalty, and results in very good performance

If you need more collection you can increase .ns file via --nssize parameter up to 2GB.

Documentation


I think thats the same as another DB... higher, it becomes more slower..

0

精彩评论

暂无评论...
验证码 换一张
取 消