group-commit · shipping

Group commit

Group commit is a logging optimization that shares a durable log synchronization across multiple concurrent transaction or write requests.

Related Observatory article: Read on hesela.com

PostgreSQL can persist several commit records in one WAL synchronization without flushing all changed data pages. [1] Group commit can occur with commit_delay=0; an added delay is a batching opportunity, not a durability exemption. [2] RocksDB also groups compatible concurrent writes; different write options can prevent grouping. [5] Hesela's distinction: sharing persistence work does not turn separate transactions into one application-level atomic operation. [6] The 1984 DeWitt et al. report distinguishes early lock release from client acknowledgment and requires dependency-aware log persistence; it does not establish invention priority. [7]

Relations

related
Write-ahead log, Asynchronous commit, XFS delayed logging, Silo, FasterLog

Advantages

  • Amortizes log synchronization overhead across concurrent commits. [1]

Limitations

  • Waiting to collect more commits can increase latency and can reduce throughput. [2]
  • The mechanism does not itself specify replica acknowledgments or the storage stack's persistence guarantees. [3, 4]

Citations

  1. PostgreSQL 18: Write-Ahead Logging (accessed 2026-10-15)
  2. PostgreSQL 18: WAL Configuration, group commit (accessed 2026-10-15)
  3. PostgreSQL 18: WAL settings, commit_delay and synchronous_commit (accessed 2026-10-15)
  4. PostgreSQL 18: Reliability (accessed 2026-10-15)
  5. RocksDB: WAL Performance, Group Commit (unversioned wiki) (accessed 2026-10-15)
  6. PostgreSQL 18: Transactions (accessed 2026-10-15)
  7. DeWitt et al. Implementation Techniques for Main Memory Database Systems. UCB/ERL M84/5 (1984), section 5.2. (accessed 2026-10-15)

Further reading

  1. Hesela: Group commit shares persistence work, not transaction identity (accessed 2026-10-15)

JSON: /data/terms/group-commit.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Group commit. Hesela. 2026-12-02. https://hesela.dev/terms/group-commit/