-
Notifications
You must be signed in to change notification settings - Fork 43
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
Reduce memory usage for scratch buffer #403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (3)
- src/executor/execution_plan.cc: Language not supported
- src/executor/executor.cc: Language not supported
- src/include/execution_plan.hpp: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In the executor, we allocate the scratch buffer based on
sendMemRange
. However, for certain execution plans, this allocation may be unsuitable, as the plan does not support messages of this size.To avoid allocating to much data and cause OOM error, set scratch buffer size to
min(scratchBufferSize(maxMessageSizeSupportedForPlan), scratchBufferSize(sendMemRange))