Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will mongodb document size limit be increased from 16MB?

Tags:

mongodb

The document size increased from 4MB to 16MB, in December 2010. Will it be increased further? If so when?

One work around the size is normalization of the database, by creating more collections, and performing application level joins ( not provided thru MongoDB).

Is there a configuration option available (in MongoDB) which increases limit or provides for a work around?

Suggestions for workarounds around the limit are welcome.

like image 702
Swagg Avatar asked Aug 22 '13 07:08

Swagg


1 Answers

There is a JIRA for this: https://jira.mongodb.org/browse/SERVER-5923 but it is listed under features that 10gen are not sure of which means I wouldn't hold your breath.

The docuent size is what it is for a good reason really, namely memory allocation.

If you need more than 16meg you need to seriously consider whether what you are doing is right. MongoDB can do JOINs client side and sometimes you just have to accept that some data is better separate and JOINed in the application. The rule of thumb of always embedding is untrue and incorrect.

like image 150
Sammaye Avatar answered Sep 27 '22 18:09

Sammaye