Hierarchical locking in B-tree indexes
Abstract
Portions of a B-tree index in a database are locked for concurrency control. In one example, hierarchical lock modes are provided that permit locking a key, a gap between the key and the next key, and a combination of the key and the gap. In another example, key range locking may be applied to the B-tree index using locks on separator keys of index nodes. In another example, key range locking may be applied to the B-tree index using locks on key prefixes.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A database system including a processing unit and memory, comprising: a set of lock modes for use in locking a first key, a gap between the first key and a next key, and the combination of the first key and the gap in a B-tree index, the set of lock modes including: key shared (SØ) including a shared lock on the first key and no lock on the gap, gap shared (ØS) including no lock on the first key and a shared lock on the gap, key exclusive (XØ) including an exclusive lock on the first key and no lock on the gap, gap exclusive (ØX) including no lock on the first key and an exclusive lock on the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (5)
- Ashok M. Joshi "Adaptive Locking Strategies in a Multi-node Data Sharing Environment", Proceedings of the 17th International conference on Very Large Data Bases, Sep. 1991.
- Bishwaranjan Bhattacharjee et al. "Efficient Query Processing for Multi-Dimensionally Clustered Tables in DB2", Proceedings of the 29th VLDB Conference, Berlin, Germany, 2003.
- C. Mohan "ARIES/KLV: A Key-Value Locking Method for Concurrency Control of Multiaction transactions Operating on B-Tree Indexes", Proceedings of the 16th VLDB Conference, 1990.
- C. Mohan et al. "ARIES/IM: An Efficient and High Concurrency Index Management Method Using Write-Ahead Logging", ACM SIGMOD, 1992.
- C. Mohan et al. "ARIES: A Transaction Recovery Method Supporting Fine-Granularity Locking and Partial Rollbacks Using Wrote-Ahead Logging", ACM Transactions on Database Systems, Mar. 1992, vol.17, No. 1.