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

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2623 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.