-
Notifications
You must be signed in to change notification settings - Fork 138
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
Offload entry root slice to QE #385
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eb7f7fc
to
e5e074f
Compare
avamingli
reviewed
Mar 1, 2024
avamingli
reviewed
Mar 1, 2024
e9ae87e
to
ec724c3
Compare
avamingli
reviewed
Mar 4, 2024
6229fcb
to
58a5e51
Compare
avamingli
reviewed
Mar 8, 2024
avamingli
approved these changes
Mar 11, 2024
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.
yjhjstz
reviewed
Mar 11, 2024
yjhjstz
reviewed
Mar 11, 2024
yjhjstz
reviewed
Mar 11, 2024
yjhjstz
reviewed
Mar 11, 2024
yjhjstz
reviewed
Mar 11, 2024
yjhjstz
reviewed
Mar 11, 2024
58a5e51
to
b3dfabf
Compare
yjhjstz
reviewed
Mar 12, 2024
b3dfabf
to
1a92883
Compare
yjhjstz
reviewed
Mar 15, 2024
yjhjstz
reviewed
Mar 15, 2024
yjhjstz
reviewed
Mar 15, 2024
c5cb4c9
to
d472c6b
Compare
yjhjstz
reviewed
Mar 18, 2024
d472c6b
to
6bab2a3
Compare
yjhjstz
reviewed
Mar 18, 2024
yjhjstz
reviewed
Mar 18, 2024
yjhjstz
reviewed
Mar 18, 2024
For some queries, Sort, (Finalized) Aggregate and Join are executed on QD, which increase workload on a single point. This PR alleviates this by offloading these operators to a QE. Specifically, it checks whether the root slice (the slice of the Plan before it meets the first Motion) contains these operators in should_offload_entry_to_qe_plan_walker, then it checks whether the offloading can be performed safely in safe_to_offload_entry_to_qe_rte_walker by walking the range table. This implementation specifically does not rely on RelOptInfo or anything postgres-optimizer-specific so that we can port this to Orca in the future.
6bab2a3
to
b7fb8d0
Compare
yjhjstz
approved these changes
Mar 18, 2024
@my-ship-it Maybe merge this as well? :) |
foreyes
pushed a commit
to foreyes/cloudberrydb
that referenced
this pull request
Jul 8, 2024
For some queries, Sort, (Finalized) Aggregate and Join are executed on QD, which increase workload on a single point. This PR alleviates this by offloading these operators to a QE. Specifically, it checks whether the root slice (the slice of the Plan before it meets the first Motion) contains these operators in should_offload_entry_to_qe_plan_walker, then it checks whether the offloading can be performed safely in safe_to_offload_entry_to_qe_rte_walker by walking the range table. This implementation specifically does not rely on RelOptInfo or anything postgres-optimizer-specific so that we can port this to Orca in the future.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 some queries, Sort, (Finalized) Aggregate and Join are executed on QD, which increase workload on a single point. This PR alleviates this by offloading these operators to a QE. Specifically, it checks whether the root slice (the slice of the Plan before it meets the first Motion) contains these operators in
should_offload_entry_to_qe_plan_walker
, then it checks whether the offloading can be performed safely insafe_to_offload_entry_to_qe_rte_walker
by walking the range table. This implementation specifically does not rely onRelOptInfo
or anything postgres-optimizer-specific so that we can port this to Orca in the future.