Hi good people ,
I wanted to know is there any limit for creating databases in a single mongodb cluster ?
If so what is the maximum number of databases that are allowed ?
If the cluster can handle as many databases as I add, is there any issue for scalability with this design ?
Assuming I have 5000 databases and 50 collections on each database, can a cluster handle this setup efficiently or is it even possible?
Hello @Riad_Hossain !
I am not aware of a particular “limit” in database quantity … as for scalability and efficiency, a bigger concern would be what is in your collections, etc.
This post has a good breakdown of those concepts:
Hi @Nagarajan_Palaniappa ,
For general information, please see MongoDB Limits and Thresholds in the MongoDB documentation. You’ll note that this doesn’t specifically mention a limitation on the number of databases or collections, but I’ll explain why below.
The maximum document size in MongoDB is currently 16MB, but if you are approaching that I would definitely give serious consideration to whether your data model can be improved. For some related commentary, see: Use case for storing pages of…
6 Likes
Hello @Justin_Jenkins ,
Thanks for the resource. This will help.