IT lexicon › Database › Row-level locking

Row-level locking

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

A locking mechanism that locks individual database rows rather than entire tables, reducing conflicts between concurrent transactions.

Row-level locking is a fundamental concurrency control technique in relational databases. When a transaction needs to modify a row, it acquires a lock on just that row, not the whole table. This allows many transactions to work simultaneously on different rows. Read operations acquire shared locks (multiple readers allowed), while writes acquire exclusive locks (only one writer). The database must maintain a lock table to track which transactions hold which locks. Row-level locking has higher overhead than table-level locking but provides much better concurrency in practice.

← Back to the lexicon