Skip to content
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 RPC for point get #36162

Closed
you06 opened this issue Jul 13, 2022 · 1 comment
Closed

Reduce RPC for point get #36162

you06 opened this issue Jul 13, 2022 · 1 comment
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@you06
Copy link
Contributor

you06 commented Jul 13, 2022

Enhancement

TiDB executes point-get requests with non-clustered indexes in the following process:

  • Read index value
  • Lock index key
  • Lock handle key

An ideal process may be reading the index value from the locking response. But for RC mode, we only lock keys when they exist, there may be a lock-if-exist option for the pessimistic lock.

Another possible solution is the batch-point-get's style, locks index keys and handle keys in parallel, which does not follow a fixed locking order, and may be more risk of deadlock.

@you06
Copy link
Contributor Author

you06 commented Jan 19, 2023

RC mode optimization is done by #36834, Close this issue.

@you06 you06 closed this as completed Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant