Releasing Locks As Early As You Can: Reducing Contention of Hotspots by Violating Two-Phase Locking
Zhihan Guo, Kan Wu, Cong Yan, Xiangyao Yu
Abstract
Hotspots, a small set of tuples frequently read/written by a large number of transactions, cause contention in a concurrency control protocol. While a hotspot may comprise only a small fraction of a transaction's execution time, conventional strict two-phase locking allows a transaction to release lock only after the transaction completes, which leaves significant parallelism unexploited. Ideally, a concurrency control protocol serializes transactions only for the duration of the hotspots, rather than the duration of transactions.
We observe that exploiting such parallelism requires violating two-phase locking. In this paper, we propose Bamboo, a new concurrency control protocol that can enable such parallelism by modifying the conventional two-phase locking, while maintaining the same guarantees in correctness. We thoroughly analyzed the effect of cascading aborts involved in reading uncommitted data and discussed optimizations that can be applied to further improve the performance. Our evaluation on TPC-C shows a performance improvement up to 4× compared to the best of pessimistic and optimistic baseline protocols. On synthetic workloads that contain a single hotspot, Bamboo achieves a speedup up to 19× over baselines.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers20
- When Private Blockchain Meets Deterministic DatabaseZiliang Lai, Chris Liu, Eric LoSIGMOD 2023 · 22 citations
- Fine-Grained Re-Execution for Efficient Batched Commit of Distributed TransactionsZhiyuan Dong, Zhaoguo Wang, Xiaodong Zhang, Xian Xu et al.VLDB 2023 · 16 citations
- Towards Optimal Transaction SchedulingAudrey Cheng, Aaron N. Kabcenell, Jason Chan, Xiao Shi et al.VLDB 2024 · 14 citations
- Chardonnay: Fast and General Datacenter Transactions for On-Disk DatabasesTamer Eldeeb, Xincheng Xie, Philip A. Bernstein, Asaf Cidon et al.OSDI 2023 · 12 citations
- Aurogon: Taming Aborts in All Phases for Distributed In-Memory TransactionsTianyang Jiang, Guangyan Zhang, Zhiyue Li, Weimin ZhengFAST 2022 · 10 citations
Related papers
- Brook-2PL: Tolerating High Contention Workloads with A Deadlock-Free Two-Phase Locking ProtocolFarzad Habibi, Juncheng Fang, Tania Lorido-Botran, Faisal NawabSIGMOD 2026 · 1 citation
- OOCC: One-Round Optimistic Concurrency Control for Read-Only Disaggregated TransactionsHao Wu, Mingxing Zhang, Kang Chen, Xia Liao et al.ICDE 2025 · 4 citations
- Rebirth-Retire: A Concurrency Control Protocol Adaptable to Different Levels of ContentionQian Zhang, Yiwen Xiang, Jianhao Wei, Yang Yang et al.VLDB 2025 · 1 citation
- Opportunities for Optimism in Contended Main-Memory Multicore TransactionsYihe Huang, William Qian, Eddie Kohler, Barbara Liskov et al.VLDB 2020 · 60 citations
- Polaris: Enabling Transaction Priority in Optimistic Concurrency ControlChenhao Ye, Wuh-Chwen Hwang, Keren Chen, Xiangyao YuSIGMOD 2023 · 12 citations
