Skip to content

add uncapped_max_size feature to allow increasing max BSON size #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Trevader24135
Copy link

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!

@Trevader24135 Trevader24135 requested a review from a team as a code owner April 22, 2025 23:14
@Trevader24135 Trevader24135 requested review from abr-egn and removed request for a team April 22, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant