[Multi-stage] Optimize query dispatch#12358
Merged
Jackie-Jiang merged 1 commit intoapache:masterfrom Feb 3, 2024
Merged
Conversation
Contributor
Jackie-Jiang
commented
Feb 3, 2024
- Do the server independent serialization only once per stage
- Send one plan per server instead of one plan per stage per server
- Parallel execute the server dependent serialization
xiangfu0
approved these changes
Feb 3, 2024
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #12358 +/- ##
============================================
- Coverage 61.71% 61.68% -0.04%
+ Complexity 1153 207 -946
============================================
Files 2424 2426 +2
Lines 132512 132674 +162
Branches 20481 20502 +21
============================================
+ Hits 81782 81839 +57
- Misses 44732 44831 +99
- Partials 5998 6004 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
walterddr
reviewed
Feb 3, 2024
Comment on lines
+135
to
+136
| for (QueryServerInstance serverInstance : serverInstances) { | ||
| _executorService.submit(() -> { |
Contributor
There was a problem hiding this comment.
note that QueryServer could also apply similar technique
deserialization (line 109) can be move into the runAsync (line 121)
Contributor
Author
There was a problem hiding this comment.
Good point! Will do it as a separate PR
This file contains hidden or 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
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.