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

事务模板对已提交读操作的鲁棒性

Robustness against Read Committed for Transaction Templates

Brecht Vandevoort, Bas Ketsman, Christoph Koch, Frank Neven

摘要:

许多数据库系统提供的隔离级别多版本读提交(RC)可以用一致性换取更高的事务吞吐量。有时,事务工作负载可以在RC下安全地执行,以较低的RC成本获得完美的可串行化隔离。为了识别这种情况下,我们引入了一个表现力模型的事务程序,以更好地推理事务工作负载的可串行化。我们开发易于处理的算法来决定是否任何可能的时间表下RC执行的工作量是可串行化的(称为鲁棒性问题)。我们的方法产生强大的子集,比以前的方法所确定的。我们提供的实验证据表明,对RC强大的工作负载可以更快地评估RC下相比,更强的隔离级别。我们讨论的技术,使工作负载强大的RC通过促进选择性读取操作更新。根据场景的不同,性能改进可能是相当大的。因此,在较低隔离级别RC下进行健壮性测试和安全执行事务可以提供一种直接的方法来增加事务吞吐量,而无需更改DBMS内部。

英文摘要:

The isolation level Multiversion Read Committed (RC), offered by many database systems, is known to trade consistency for increased transaction throughput. Sometimes, transaction workloads can be safely executed under RC obtaining the perfect isolation of serializability at the lower cost of RC. To identify such cases, we introduce an expressive model of transaction programs to better reason about the serializability of transactional workloads. We develop tractable algorithms to decide whether any possible schedule of a workload executed under RC is serializable (referred to as the robustness problem). Our approach yields robust subsets that are larger than those identified by previous methods. We provide experimental evidence that workloads that are robust against RC can be evaluated faster under RC compared to stronger isolation levels. We discuss techniques for making workloads robust against RC by promoting selective read operations to updates. Depending on the scenario, the performance improvements can be considerable. Robustness testing and safely executing transactions under the lower isolation level RC can therefore provide a direct way to increase transaction throughput without changing DBMS internals.

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

↑