-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
txn: change lock into put record for unique index key lock #25730
Conversation
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
7d1380b
to
890485a
Compare
/run-all-tests |
/run-all-tests |
890485a
to
b389fbe
Compare
|
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #26224 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.1 in PR #26225 |
Signed-off-by: zyguan <zhongyangguan@gmail.com>
This reverts commit 3a5f434. Signed-off-by: zyguan <zhongyangguan@gmail.com>
…42488) (pingcap#42503)" This reverts commit 6211ae6.
…42488) (pingcap#42503)" This reverts commit 6211ae6.
What problem does this PR solve?
Issue Number:
Related to #25659
Problem Summary:
Since #21229, all the unique index keys will be locked if they are used in the for update read access path. The for update read with point get on non-clusetered unique index keys may leave many LOCK records which affect the performance a lot.
What is changed and how it works?
What's Changed:
Change the
LOCK
record intoPUT
when the for update read is used for point/batch point get unqiue index read.Record the original index value into memory buffer so that the record will be PUT.
How it Works:
Related changes
Check List
Tests
Side effects
Release note