Catalogue / tidb-2024-pessimistic-concurrency

TiDB added pessimistic concurrency control after relying only on optimistic control, and almost all customers now use it by default

TiDB developers (the source does not name the company), 2024. TiDB transaction concurrency control.

Organisation
TiDB developers (the source does not name the company)
Evidence
Reported from production
Source
Pessimistic or Optimistic Concurrency Control? Lessons Learned from Real-World Customer Scenarios

Medium (@siddontang), published 2024-12-06

Records

Decision#d1

Offer pessimistic locking in the database instead of relying only on optimistic concurrency and client retries

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.