-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: multi-query prefetch support pessimistic transaction #18439
Conversation
// we can get the keys from the lock cache. | ||
// TODO: In the future we can support pre lock point keys for pessimistic transactions. | ||
return nil, nil | ||
if vars.IsReadConsistencyTxn() { |
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.
I think if it is a multi-query, we could prefetch data for RC transaction.
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.
We can do it in the future.
a6fc11b
to
950b594
Compare
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
@lysu,Thanks for your review. |
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
@jackysp,Thanks for your review. |
/merge |
/run-all-tests |
@coocood merge failed. |
Codecov Report
@@ Coverage Diff @@
## master #18439 +/- ##
================================================
+ Coverage 79.4223% 79.5849% +0.1625%
================================================
Files 540 540
Lines 144861 145990 +1129
================================================
+ Hits 115052 116186 +1134
+ Misses 20513 20487 -26
- Partials 9296 9317 +21 |
/merge |
/run-all-tests |
@coocood merge failed. |
/run-check_dev_2 |
What problem does this PR solve?
Performance improvement.
What is changed and how it works?
Call lock keys for pessimistic transactions for multi-statement query.
So we can avoid RPC call during each statement execution.
Check List
Tests
Release note