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.

-
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