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..
精彩评论