Skip to content

ADR-0038 — Deferred: compression as a serde wrapper, synchronous_commit = off

  • Status: Accepted
  • Date: 2026-11-11
  • Supersedes: none
  • Authors: project maintainers

Context

Two cheap levers were proposed early. Compression as a serde wrapper zstd-compresses each value before the saver sees it. synchronous_commit = off lets a commit return before its WAL is flushed.

Decision

Both are deferred; neither ships.

Alternatives considered

  • A compressing serde — deferred: a serde that compresses hands the saver bytes it cannot patch, so it would defeat patch storage. The saver compresses full copies itself instead (ADR-0008).
  • synchronous_commit = off — deferred: it trades durability (the last commits can be lost on a server crash, never corrupted) for latency, a choice the application must opt into, not one a saver should make.

Consequences

  • An application can still set synchronous_commit on its own connections; the saver does not.

References