ADR-0036 — Compressed pending writes
- Status: Accepted
- Date: 2026-11-15
- Supersedes: none
- Authors: project maintainers
Context
Pending writes (put_writes) were the one kind of stored value the saver left plain. Changing
their on-disk format after 1.0 would change what rehydrate and every reader must handle, so the
choice had to be made before it.
Decision
Pending writes of MIN_COMPRESS_BYTES (256) and up are compressed under the full copy's tag
(opc:zstd:) when that makes them smaller. They stay plain in full-copies mode and once
rehydrate's patching-off switch is set, and rehydrate rewrites them as plain rows. This is
built before 1.0 so the on-disk format is final there.
Alternatives considered
- Leave them plain — rejected on the measurement below.
Consequences
- Benchmark 7's writes shrank from 89.3 to 69.8 MB on both graphs, and every benchmark 2
DeltaChannelworkload stayed within 1.05× upstream's disk (measuredbefore public release, bytes only; core-set-results.md). - Upstream cannot read a compressed write; that is the same loud failure as for full copies (compatibility.md).