Skip to content

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

@shafreeck

Description

@shafreeck

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions