Jump to content

Index locking

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SmackBot (talk | contribs) at 20:39, 16 December 2009 (remove Erik9bot category,outdated, tag and general fixes, added orphan tag). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Index locking is a procedure in which running one task on a database table blocks all access by other tasks to the entire table. With index locking it may be necessary to lock the index build for a column, not just the data items themselves. Index locking prevents conflicts between functions by ensuring that a table is not modified while a function is attempting to use it.

The circumstances where it is necessary to index lock include:

  • Adding a new level to the root page
  • Shrinking the root page
  • Splitting or shrinking the immediate child of the root page, causing an update on the root page

Circumstances where it is not necessary to Index lock include where:

  • Small tables with index levels no higher than 3 are being used.
  • Possible modifications to the root page of an index are envisioned.