Polyjuice: High-Performance Transactions via Learned Concurrency Control
Jia-Chen Wang, Ding Ding, Huan Wang, Conrad Christensen, Zhaoguo Wang, Haibo Chen, Jinyang Li
Abstract
Concurrency control algorithms are key determinants of the performance of in-memory databases. Existing algorithms are designed to work well for certain workloads. For example, optimistic concurrency control (OCC) is better than twophase-locking (2PL) under low contention, while the converse is true under high contention. To adapt to different workloads, prior works mix or switch between a few known algorithms using manual insights or simple heuristics. We propose a learning-based framework that instead explicitly optimizes concurrency control via offline training to maximize performance. Instead of choosing among a small number of known algorithms, our approach searches in a "policy space" of fine-grained actions, resulting in novel algorithms that can outperform existing algorithms by specializing to a given workload. We build Polyjuice based on our learning framework and evaluate it against several existing algorithms. Under different configurations of TPC-C and TPC-E, Polyjuice can achieve throughput numbers higher than the best of existing algorithms by 15% to 56%. Interleaving control Validation Read Read Write Write Early Validation wait version wait visibility validation method 2PL * Until T dep latest Until T dep Yes Yes n/a commits committed commits OCC [28] No latest No No No physical cts TicToc [68] committed No logical cts Sundial [69]
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
19 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- AlNiCo: SmartNIC-accelerated Contention-aware Request Scheduling for Transaction Processing cites Plor: General Transactions with Predictable, Low Tail Latency
- Motor: Enabling Multi-Versioning for Distributed Transactions on Disaggregated Memory cites FORD: Fast One-sided RDMA-based Distributed Transactions for Disaggregated Persistent Memory
Cited by top-tier papers19
- FORD: Fast One-sided RDMA-based Distributed Transactions for Disaggregated Persistent MemoryMing Zhang, Yu Hua, Pengfei Zuo, Lurong LiuFAST 2022 · 97 citations
- Plor: General Transactions with Predictable, Low Tail LatencyYoumin Chen, Xiangyao Yu, Paraschos Koutris, Andrea C. Arpaci-Dusseau et al.SIGMOD 2022 · 25 citations
- Motor: Enabling Multi-Versioning for Distributed Transactions on Disaggregated MemoryMing Zhang, Yu Hua, Zhijun YangOSDI 2024 · 21 citations
- AdaChain: A Learned Adaptive BlockchainChenyuan Wu, Bhavana Mehta, Mohammad Javad Amiri, Ryan Marcus et al.VLDB 2023 · 20 citations
- AlNiCo: SmartNIC-accelerated Contention-aware Request Scheduling for Transaction ProcessingJunru Li, Youyou Lu, Qing Wang, Jiazhen Lin et al.USENIX ATC 2022 · 17 citations
Builds on3
- Learning Relaxed Belady for Content Distribution Network CachingZhenyu Song, Daniel S. Berger, Kai Li, Wyatt LloydNSDI 2020 · 193 citations
- QuickSel: Quick Selectivity Learning with Mixture ModelsYongjoo Park, Shucheng Zhong, Barzan MozafariSIGMOD 2020 · 66 citations
- Meerkat: multicore-scalable replicated transactions following the zero-coordination principleAdriana Szekeres, Michael J. Whittaker, Jialin Li, Naveen Kr. Sharma et al.EuroSys 2020 · 11 citations
Related papers
- Modeling Concurrency Control as a Learnable FunctionHexiang Pan, Shaofeng Cai, Tien Tuan Anh Dinh, Yuncheng Wu et al.SIGMOD 2026 · 5 citations
- The Holon Approach for Simultaneously Tuning Multiple Components in a Self-Driving Database Management System with Machine Learning via Synthesized Proto-ActionsWilliam Zhang, Wan Shen Lim, Matthew Butrovich, Andrew PavloVLDB 2024 · 13 citations
- Opportunities for Optimism in Contended Main-Memory Multicore TransactionsYihe Huang, William Qian, Eddie Kohler, Barbara Liskov et al.VLDB 2020 · 60 citations
- Learning-based controlled concurrency testingSuvam Mukherjee, Pantazis Deligiannis, Arpita Biswas, Akash LalOOPSLA 2020 · 20 citations
- An Analysis of Concurrency Control Protocols for In-Memory Database with CCBenchTakayuki Tanabe, Takashi Hoshino, Hideyuki Kawashima, Osamu TatebeVLDB 2020 · 40 citations
