add uncapped_max_size
feature to allow increasing max BSON size
#528
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For various projects I'm working on, I'm using BSON as an efficient means to transfer potentially quite a bit of data (~200Mb). From what I can read of the BSON standard, it's expected to support document sizes up to 2Gb, but this implementation is currently hard capped to 16Mb to better service MongoDB.
I figured adding an opt-in feature to increase the cap to the maximum would serve to be useful for more people than just me, without affecting the way that it's currently used within MongoDB applications.
I ran all the unit tests and linting tests and didn't encountered any failures with or without the added feature enabled.
Let me know if I'm off-base thinking that this is a useful addition, or if there are any unforseen issues with expanding the max size. I haven't done extensive reading of this library, so I may be missing something else that needs accounted for.
Thanks!