How many collections may be in MongoDB in MongoDB without loss?

I see that by default, MongoDB has 24,000 available collections with 16MB .ns files. If I increase it to 2GB (maximum), then I can Get 3,000,000 collections in it? Will there be a significant drop in performance?
According to the document, a large number of collections will not affect performance (almost not).

< p>

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

If you need more collections , You can increase the .ns file through the –nssize parameter, up to 2GB.

Documentation

I see that by default, MongoDB has 24,000 Available collections with 16MB .ns files. If I increase it to 2GB (maximum), can I get 3,000,000 collections in the database? Will there be a significant drop in performance?

According to the documentation, a 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 collections, you can increase the .ns file through the –nssize parameter, the highest Up to 2GB.

Documentation

Leave a Comment

Your email address will not be published.