Metraipolis › archive › dc_d27f7a96e9f4
Index locking — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Index_locking
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-15T17:40:09.603Z
- SHA-256 of the archived text
0e2043b6c78d90d635831cbe7959aa0db096c39c9482719eca9fdecf66be7e5e- Stable URL of this page
https://metraipolis.com/documento/dc_d27f7a96e9f4
How to cite
Index locking — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Index_locking (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_d27f7a96e9f4 (Metraipolis archive dc_d27f7a96e9f4, sha256 0e2043b6c78d90d635831cbe7959aa0db096c39c9482719eca9fdecf66be7e5e)
BibTeX
@misc{dcd27f7a96e9f4,
title = {Index locking — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Index_locking},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_d27f7a96e9f4; sha256 0e2043b6c78d90d635831cbe7959aa0db096c39c9482719eca9fdecf66be7e5e},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Index_locking. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In databases an index is a data structure, part of the database, used by a database system to efficiently navigate access to user data. Index data are system data distinct from user data, and consist primarily of pointers. Changes in a database (by insert, delete, or modify operations), may require indexes to be updated to maintain accurate user data accesses. Index locking is a technique used to maintain index integrity. 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. 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. 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). Index Locking Protocol guarantees that phantom read phenomenon won't occur. Index locking protocol states: Every relation must have at least one index. 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. 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 r must update all indices to r 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. Specialized concurrency control techniques exist for accessing indexes. These techniques depend on the index type, and take advantage of its structure. They are typically much more effective than applying to indexes common concurrency control methods applied to user data. Notable and widely researched are specialized techniques for B-trees (B-Tree concurrency control) which are regularly used as database indexes. Index locks are used to coordinate threads accessing indexes concurrently, and typically shorter-lived than the common transaction locks on user data. In professional literature, they are often called latches. Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; categoria «Databases»). Fonte: Wikipedia in inglese, voce «Index locking» — https://en.wikipedia.org/wiki/Index_locking Wikidata Q6017846 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q6017846 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Index_locking?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1362415212, consultata il 2026-10-15T16:35:31.842Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 5cca899905ef48cf834d2c771e99c24e9ceff45b37e99c681f40312c203ffc3b