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

Use the metakey as the primary key when committing a transaction #180

Open
shafreeck opened this issue Jan 16, 2020 · 0 comments
Open

Use the metakey as the primary key when committing a transaction #180

shafreeck opened this issue Jan 16, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@shafreeck
Copy link
Contributor

The 2PC in TiKV uses the percolator distributed transaction model which commits the secondary keys in the background. When the secondary keys are MetaKeys which is lazily updated in async may kick off the new request accessing this object because of the lock. So we should use the MetaKey as the primary key.

There are two ways to gain this goal.

  1. Use a small prefix of MetaKey like changing D to P(payload)
  2. Add the feature to specify the primary key when committing a transaction.
@shafreeck shafreeck added the enhancement New feature or request label Jan 16, 2020
@shafreeck shafreeck modified the milestone: Release 1.0 Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant