encyclopegia.org

Index locking

In databases an index is a data structure, part of the database, used by a database system to efficiently navigate access to user data.[src] Index data are system data distinct from user data, and consist primarily of pointers.[src] Changes in a database (by insert, delete, or modify operations), may require indexes to be updated to maintain accurate user data accesses.[src] Index locking is a technique used to maintain index integrity.[src] A portion of an index is locked during a database transaction when this portion is being accessed by the transaction as a result of attempt to access related user data.[src] Additionally, special database system transactions (not user-invoked transactions) may be invoked to maintain and modify an index, as part of a system's self-maintenance activities.[src] When a portion of an index is locked by a transaction, other transactions may be blocked from accessing this index portion (blocked from modifying, and even from reading it, depending on lock type and needed operation).[src] Index Locking Protocol guarantees that phantom read phenomenon won't occur.[src] Index locking protocol states: * Every relation must have at least one index.…[src]

In databases an index is a data structure, part of the database, used by a database system to efficiently navigate access to user data.[src] Index data are system data distinct from user data, and consist primarily of pointers.[src] Changes in a database (by insert, delete, or modify operations), may require indexes to be updated to maintain accurate user data accesses.[src] Index locking is a technique used to maintain index integrity.[src] A portion of an index is locked during a database transaction when this portion is being accessed by the transaction as a result of attempt to access related user data.[src] Additionally, special database system transactions (not user-invoked transactions) may be invoked to maintain and modify an index, as part of a system's self-maintenance activities.[src] When a portion of an index is locked by a transaction, other transactions may be blocked from accessing this index portion (blocked from modifying, and even from reading it, depending on lock type and needed operation).[src] Index Locking Protocol guarantees that phantom read phenomenon won't occur.[src] Index locking protocol states: Every relation must have at least one index.[src] A transaction can access tuples only after finding them through one or more indices on the relation A transaction Ti that performs a lookup must lock all the index leaf nodes that it accesses, in S-mode, even if the leaf node does not contain any tuple satisfying the index lookup (e.g.[src] for a range query, no tuple in a leaf is in the range) A transaction Ti that inserts, updates or deletes a tuple ti in a relation must update all indices to and it must obtain exclusive locks on all index leaf nodes affected by the insert/update/delete The rules of the two-phase locking protocol must be observed.[src] Specialized concurrency control techniques exist for accessing indexes.[src] These techniques depend on the index type, and take advantage of its structure.[src] They are typically much more effective than applying to indexes common concurrency control methods applied to user data.[src] Notable and widely researched are specialized techniques for B-trees (B-Tree concurrency control ) which are regularly used as database indexes.[src] Index locks are used to coordinate threads accessing indexes concurrently, and typically shorter-lived than the common transaction locks on user data.[src] In professional literature, they are often called latches.[src] ==See also== Database index Concurrency control Lock (database) B-tree concurrency control ==References==[src]

27 sentences · 27 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Index locking." encyclopegia.org, 2026, https://encyclopegia.org/wiki/index-locking. Accessed 25 November 2026.

Chicago

"Index locking." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/index-locking.

APA

encyclopegia.org. (2026). Index locking. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/index-locking

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Index Librorum Prohibitorum

stub · references available

Roud Folk Song Index

stub · references available

stock market index

stub · references available

color index

stub · references available

Hoover index

stub · references available

AMX index

stub · references available

ramp travel index

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1362415212 · 0.5 · snapshot enwiki-001362415212

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.