Patents
US 7,953,717 B2#6141190 Most CitedActiveUnited States (USPTO)Utility

Hierarchical locking in B-tree indexes

15Forward Citations (#6141190 Global)
1.0/yrCitation Velocity (#6260212 Global)
3.59Citation PageRank (#5684502 Global)
6Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

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: 6 · Forward citations: 15.

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A method, comprising: placing a lock on a separator key of an index node of a B-tree index, wherein the lock locks a key range from the separator key to a next separator key; and merging a first child node and a second child node of the index node into a merged node when locks on the first child node and the second child node do not conflict, wherein merging includes removing the separator key from the index node and applying the lock from the removed separator key to a separator key for the merged node.

  2. Claim 2Depends on #1

    The method of claim 1 , further comprising: splitting a child node of the index node, wherein splitting the child node includes inserting a new separator key in the index node; duplicating the lock on the separator key; and applying the lock to the new separator key.

  3. Claim 3Depends on #1

    The method of claim 1 , further comprising: escalating the lock o

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

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.