IT lexicon › Database › Intention Locking

Intention Locking

Database På svenska → Updated: 2026-11-11

A locking protocol that allows transactions to signal their intent to acquire fine-grained locks before actually taking them.

In a system with granularity locking, a transaction might take an intention-shared (IS) or intention-exclusive (IX) lock on a table to indicate that it plans to acquire shared or exclusive locks on individual rows. This reduces the need to hold locks on all rows and lets other transactions see potential conflicts at the table level without inspecting each row lock.

Intention locks are hierarchical — a transaction must hold an IX lock on a table before acquiring an exclusive row lock. This system makes it efficient to reject a request from a transaction that wants to lock the entire table without needing to inspect every row lock individually. It emerged as databases evolved to support finer-grained concurrency control.

← Back to the lexicon