快照隔离的批判
A Critique of Snapshot Isolation
AI总结:
本文批判快照隔离缺乏可串行性,提出无锁的写快照隔离,通过防止读写冲突在保持性能的同时提供可串行性。
摘要:
事务支持是数据库管理系统(DBMS)的重要组成部分。如果没有这种支持,开发人员就必须承担确保事务原子执行的责任,尽管存在故障以及其他事务对数据库的并发访问。理想情况下,事务系统提供可串行性,这意味着并发事务的结果等同于它们的串行执行。然而,基于锁实现的实践经验,可串行性被认为是一种昂贵的特性,伴随着高开销和低并发性。因此,商业系统通过实现较弱的一致性保证(如快照隔离)来折衷可串行性。因此,开发人员仍然需要承担因缺乏可串行性而可能出现的异常。\n最近有尝试为大规模数据存储(如HBase和BigTable)增加事务支持。毫不奇怪,受传统数据库管理系统的启发,可串行性通常为了效率而牺牲。例如,Google Percolator在BigTable之上实现了基于锁的快照隔离。我们在本文中表明,在无锁的事务支持实现中,这种折衷是不必要的。我们引入了写快照隔离,一种新颖的隔离级别,其性能与快照隔离相当,但提供可串行性。写快照隔离的主要见解是防止读写冲突,而快照隔离则防止写写冲突。
英文摘要:
The support for transactions is an essential part of a database management system (DBMS). Without this support, the developers are burdened with ensuring atomic execution of a transaction despite failures as well as concurrent accesses to the database by other transactions. Ideally, a transactional system provides serializability, which means that the outcome of concurrent transactions is equivalent to a serial execution of them. Based on experiences on lock-based implementations, nevertheless, serializability is known as an expensive feature that comes with high overhead and low concurrency. Commercial systems, hence, compromise serializability by implementing weaker guarantees such as snapshot isolation. The developers, therefore, are still burdened with the anomalies that could arise due to the lack of serializability. There have been recent attempts to enrich large-scale data stores, such as HBase and BigTable, with transactional support. Not surprisingly, inspired by traditional database management systems, serializability is usually compromised for the benefit of efficiency. For example, Google Percolator, implements lock-based snapshot isolation on top of BigTable. We show in this paper that this compromise is not necessary in lock-free implementations of transactional support. We introduce write-snapshot isolation, a novel isolation level that has a performance comparable with that of snapshot isolation, and yet provides serializability. The main insight in write-snapshot isolation is to prevent read-write conflicts in contrast to write-write conflicts that are prevented by snapshot isolation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。