Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many documents can a single collection have in MongoDB?

Tags:

mongodb

I haven't found any information about this.

How many documents can a single collection have in MongoDB before it is necessary to use sharding?

like image 817
monkeyUser Avatar asked Apr 26 '16 09:04

monkeyUser


People also ask

Can a MongoDB have multiple collections?

As mentioned above, a single database can have multiple collections.

Can MongoDB handle millions of data?

Working with MongoDB and ElasticSearch is an accurate decision to process millions of records in real-time. These structures and concepts could be applied to larger datasets and will work extremely well too.


Video Answer


1 Answers

There is no limitation as you can see here:

If you specify a maximum number of documents for a capped collection using the max parameter to create, the limit must be less than 2^32 documents. If you do not specify a maximum number of documents when creating a capped collection, there is no limit on the number of documents.

like image 167
M-A. Fernandes Avatar answered Oct 07 '22 00:10

M-A. Fernandes