Neeraj Gupta
Neeraj Gupta

Reputation: 173

Mongodb collection Size

By default Max size of MongoDB document is 16 MB. However if my collection has an array of documents does the same limit applicable to that also.

For example:-

"Address":[{"name":"value1","pincode":"123456"},{"name":"value1","pincode":"123456"},{"name":"value1","pincode":"123456"}]

Here is it the case that my address collection cannot be more than 16MB?

Upvotes: 1

Views: 756

Answers (1)

JohnnyHK
JohnnyHK

Reputation: 311835

Address is a collection that contains documents like {"name":"value1","pincode":"123456"}.

Each document in the collection is limited to 16 MB, but the size of the collection is not limited.

Upvotes: 2

Related Questions