IT lexicon › Database › Granularity Locking

Granularity Locking

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

Locking strategies that allow a system to choose between locking entire tables, pages, rows, or even fields depending on the workload.

A database can lock at many levels — table (locks everything), page (locks a block of rows), row (locks a single row), or field (locks a single cell). Finer granularity allows more concurrency but has higher overhead. Coarser granularity is faster but blocks more data unnecessarily.

Intention locking is a technique for managing multiple granularity levels simultaneously. A transaction signals its "intent" to acquire fine-grained locks by holding intention locks at coarser levels. This reduces the number of locks needed without sacrificing isolation. This became important as systems like Ingres and Sybase evolved to support more concurrent workloads.

← Back to the lexicon