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.
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.
Some relevant use cases can be found in the related forum discussion:
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.