IT lexicon › Database › Group commit

Group commit

Database På svenska → Updated: 2026-05-27

Optimization where several simultaneous commits are batched and fsync'd together. An fsync is expensive (5-10 ms on SSD); 100 transactions with one fsync each = 500 ms total, with group commit = 5 ms.

PostgreSQL: controlled by commit_delay + commit_siblings (default off — modern SSDs are fast enough). MySQL InnoDB: binary log group commit, critical for throughput. Trade-off: a little extra latency for individual commits (must wait for the batch) against dramatically higher total throughput. Synchronous replication can be combined with group commit — multiple transactions are shipped to the replica in one batch. Classic OLTP throughput tuning for write-heavy workloads (financial, queue-as-DB).

← Back to the lexicon