A Hybrid Approach to Integrating Deterministic and Non-Deterministic Concurrency Control in Database Systems
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×.
Authors
- Anqun Pan
- Wei Lü (ORCID: https://orcid.org/0000-0001-6769-2695)
- Xiaoyong Du (ORCID: https://orcid.org/0000-0002-5757-9135)
- Lixiong Zheng
- Hongyao Zhao
- Yinhao Hong
- Yuxing Chen (ORCID: https://orcid.org/0000-0002-6220-2535)
Institutions
- Tencent (China) (CN)
- Renmin University of China (CN)
Publication Details
- Journal
- Proceedings of the VLDB Endowment
- Published
- 2025-01-01
- DOI
- https://doi.org/10.14778/3718057.3718066
- Primary Topic
- Distributed systems and fault tolerance
- Type
- article
- Field-Weighted Citation Impact
- 0.00