-
Notifications
You must be signed in to change notification settings - Fork 41
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
perf: improve bson iteration performance #2707
Conversation
How does this affect the performance. I can't figure out where do we "skip" if the field doesn't exist? |
It depends on the data, but it makes the process of iterating through a document lazier. If you have a schema that was |
Minor: this avoids casting bson into values until we need to. This
means that if a document in a stream has a field which is not in the
schema, we just skip it.