arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.10036cs.DB
收藏

将并发控制建模为可学习的函数

Modeling Concurrency Control as a Learnable Function

National University of Singapore(新加坡国立大学);Deakin University(迪肯大学);Renmin University of China 2(中国人民大学);Singapore University of Technology and Design(新加坡科技设计大学);Zhejiang University(浙江大学)

Hexiang Pan, Shaofeng Cai, Tien Tuan Anh Dinh, Yuncheng Wu, Yeow Meng Chee, Gang Chen, Beng Chin Ooi

AI总结:

NeurCC是一种基于学习的并发控制算法,通过高效查找表实现高吞吐量,优于现有算法。

摘要:

并发控制(CC)算法在现代事务数据库中至关重要,因为它们通过并发执行事务来实现高性能,同时确保正确性。然而,最先进的CC算法在处理多样化的负载时表现不佳,且大多数算法不考虑负载漂移。在本文中,我们提出了NeurCC,一种新颖的可学习并发控制算法,能够在多样化的负载下实现高性能。该算法快速优化,使其能够抵御动态负载。它学习了一个函数,该函数捕捉了现有CC算法中的大量设计选择。该函数以高效的数据库内查找表形式实现,将数据库状态映射到并发控制操作。学习过程基于贝叶斯优化和一种新的图简化搜索算法的结合,快速收敛到一个能够实现高事务吞吐量的函数。我们比较了NeurCC与五种最先进的CC算法,并证明它在事务吞吐量和优化时间方面始终优于基线。

英文摘要:

Concurrency control (CC) algorithms are important in modern transactional databases, as they enable high performance by executing transactions concurrently while ensuring correctness. However, state-of-the-art CC algorithms struggle to perform well across diverse workloads, and most do not consider workload drifts. In this paper, we propose NeurCC, a novel learned concurrency control algorithm that achieves high performance across diverse workloads. The algorithm is quick to optimize, making it robust against dynamic workloads. It learns a function that captures a large number of design choices from existing CC algorithms. The function is implemented as an efficient in-database lookup table that maps database states to concurrency control actions. The learning process is based on a combination of Bayesian optimization and a novel graph reduction search algorithm, which converges quickly to a function that achieves high transaction throughput. We compare NeurCC against five state-of-the-art CC algorithms and show that it consistently outperforms the baselines both in transaction throughput and in optimization time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑