针对带函数约束的事务模板对 Read Committed 的鲁棒性
Robustness against Read Committed for Transaction Templates with Functional Constraints
AI总结:
本文通过引入函数约束扩展事务模板以提升建模能力,证明其能识别更多对 Read Committed 鲁棒的工作负载,并在一般形式不可判定的情况下找到可判定的受限片段用于现实场景测试。
摘要:
流行的隔离级别 Multiversion Read Committed (RC) 以牺牲串行化的部分强保证来换取更高的事务吞吐量。有时,事务工作负载可以在 RC 下安全执行,从而以 RC 的较低成本获得串行化。此类工作负载被称为对 RC 具有鲁棒性。先前的工作为以事务模板建模的事务程序生成的工作负载,提供了一种判定对 RC 鲁棒性的可处理过程。该工作的一项重要见解是,通过更精确地对事务程序建模,我们能够识别出更多的工作负载具有鲁棒性。在本工作中,我们通过用函数约束扩展事务模板来提升其建模能力,这对于捕获外键等数据依赖关系非常有用。我们表明,引入函数约束可以识别出更多原本不具有鲁棒性的工作负载为鲁棒的。尽管我们证明了该鲁棒性问题在最一般形式下变得不可判定,但我们表明对函数约束的各种限制能够产生可判定甚至可处理的片段,这些片段可用于对现实场景下针对 RC 的鲁棒性进行建模和测试。
英文摘要:
The popular isolation level Multiversion Read Committed (RC) trades some of the strong guarantees of serializability for increased transaction throughput. Sometimes, transaction workloads can be safely executed under RC obtaining serializability at the lower cost of RC. Such workloads are said to be robust against RC. Previous work has yielded a tractable procedure for deciding robustness against RC for workloads generated by transaction programs modeled as transaction templates. An important insight of that work is that, by more accurately modeling transaction programs, we are able to recognize larger sets of workloads as robust. In this work, we increase the modeling power of transaction templates by extending them with functional constraints, which are useful for capturing data dependencies like foreign keys. We show that the incorporation of functional constraints can identify more workloads as robust that otherwise would not be. Even though we establish that the robustness problem becomes undecidable in its most general form, we show that various restrictions on functional constraints lead to decidable and even tractable fragments that can be used to model and test for robustness against RC for realistic scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。