A Hybrid Approach to Integrating Deterministic and Non-deterministic Concurrency Control in Database Systems
Yinhao Hong, Hongyao Zhao, Wei Lu, Xiaoyong Du, Yuxing Chen, Anqun Pan, Lixiong Zheng
摘要
Deterministic and non-deterministic concurrency control algorithms have shown respective advantages under diverse workloads. Thus, a natural idea is to blend them together. However, because deterministic algorithms work with stringent assumptions, e.g., batched execution and non-interactive transactions, they hardly work together with non-deterministic algorithms. To address this issue, we propose HDCC, a hybrid approach that adaptively employs Calvin and OCC, which have distinct concurrency control and logging schemes, in the same database system. To ensure serializability and recovery correctness, we introduce lock-sharing, global validation, and two-log-interleaving mechanisms. Additionally, we introduce a rule-based assignment mechanism to dynamically select Calvin or OCC based on workload characteristics. Experimental results using TPC-C and YCSB benchmarks demonstrate that HDCC surpasses existing hybrid approaches by up to 3.1×.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Modeling Concurrency Control as a Learnable Function 引用了 Releasing Locks As Early As You Can: Reducing Contention of Hotspots by Violating Two-Phase Locking
- Modeling Concurrency Control as a Learnable Function 引用了 Polyjuice: High-Performance Transactions via Learned Concurrency Control
- When Private Blockchain Meets Deterministic Database 引用了 Releasing Locks As Early As You Can: Reducing Contention of Hotspots by Violating Two-Phase Locking
- When Private Blockchain Meets Deterministic Database 引用了 Opportunities for Optimism in Contended Main-Memory Multicore Transactions
引用它的顶会 Paper2
它引用的 Paper8
- Opportunities for Optimism in Contended Main-Memory Multicore TransactionsYihe Huang, William Qian, Eddie Kohler, Barbara Liskov 等VLDB 2020 · 60 次引用
- Releasing Locks As Early As You Can: Reducing Contention of Hotspots by Violating Two-Phase LockingZhihan Guo, Kan Wu, Cong Yan, Xiangyao YuSIGMOD 2021 · 44 次引用
- Polyjuice: High-Performance Transactions via Learned Concurrency ControlJia-Chen Wang, Ding Ding, Huan Wang, Conrad Christensen 等OSDI 2021 · 39 次引用
- When Private Blockchain Meets Deterministic DatabaseZiliang Lai, Chris Liu, Eric LoSIGMOD 2023 · 22 次引用
- A Study of Database Performance Sensitivity to Experiment SettingsYang Wang, Miao Yu, Yujie Hui, Fang Zhou 等VLDB 2022 · 13 次引用
相关 Paper
- Lotus: Scalable Multi-Partition Transactions on Single-Threaded Partitioned DatabasesXinjing Zhou, Xiangyao Yu, Goetz Graefe, Michael StonebrakerVLDB 2022 · 11 次引用
- Caracal: Contention Management with Deterministic Concurrency ControlDai Qin, Angela Demke Brown, Ashvin GoelSOSP 2021 · 37 次引用
- Aria: A Fast and Practical Deterministic OLTP DatabaseYi Lu, Xiangyao Yu, Lei Cao, Samuel MaddenVLDB 2020
- Unifying Timestamp with Transaction Ordering for MVCC with Decentralized Scalar TimestampXingda Wei, Rong Chen, Haibo Chen, Zhaoguo Wang 等NSDI 2021 · 24 次引用
- Concurrency Control as a ServiceWeixing Zhou, Yanfeng Zhang, Xinji Zhou, Zhiyou Wang 等VLDB 2025
