Raise maximum BSON document size bigger than 16 MB
Per https://www.mongodb.com/docs/manual/reference/limits/#:~:text=The%20maximum%20BSON%20document%20size,MongoDB%20provides%20the%20GridFS%20API, maximum BSON document size is 16 MB. I would like to request this to support bigger sizes like 32 MB, 64 MB or even bigger.

-
Atul commented
You can put a disclaimer that 16 MB is recommended but Customer should be able to configure this value to whatever he wants 64 MB, 128mb or whatever, knowing the performances implications. If We, the customers are ready to compromise on other things like performance what problem MongoDb should have?
Last year only, we started using mongo db. We were super happy in the begining. But almost after 3 months, We came to know this limitation and one of our Collection is at risk due to this limitation.
We have a Position document. multiple Employees can be assigned to this Position. In a large org there could be a million employees. All the changes in Position document as well as in nested document of employees array are revisioned.
I don’t wanna go in much details. But, 16 MB seems super scary as our world is growing more and more data. You can not put a limit. Rather than asking your customers counter questions why do we need more than 16 mb, please make it configurable and put a recommendation of 16 mb. Otherwise, we are left with no choice but to decommision mongoDb from our tech stack. -
Marcel commented
The discussion that @FeldrinH linked for us (and which took over a year) has plenty of use cases in which we explain the necessity to adjust the document size.
Adding a configuration parameter to change the BSON document size (e.g. bigger than 16 MB) would be extremely appreciated by many developers of existing or planned applications with MongoDB.
-
FeldrinH commented
Some relevant use cases can be found in the related forum discussion:
https://www.mongodb.com/community/forums/t/increase-max-document-size-to-at-least-64mb/124424/27 -
AdminShameek (Admin, MongoDB) commented
Hey Albert, thanks for sharing this recommendation! What kind of scenarios would having this greater document size limit help you?
The reason MongoDB maintains a max doc size is so to ensure a large amount of documents of a large size don't induce a resource bottleneck - either with an excessive amount of RAM or, during networking, an excessive amount of bandwidth.
Through an improved data modelling, our users who have needed larger document size limits have been able to break up these large documents into smaller ones while still maintaining their use cases.
-
Albert commented