Skip to content
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(cursor): clear the stack every time if using populate with batchSize to avoid stack overflows with large docs #15136

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #10449

Summary

I wasn't able to repro #10449 locally, but there shouldn't be any issues with clearing the stack on every call. Minor performance impact, but better parallelization and less risk of stack overflows.

Examples

…Size to avoid stack overflows with large docs
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkarpov15 vkarpov15 added this to the 8.9.3 milestone Dec 30, 2024
@vkarpov15 vkarpov15 merged commit ddd95b8 into master Dec 30, 2024
74 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-10449-2 branch December 30, 2024 20:07
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.

Maximum call stack size exceeded
3 participants