Skip to main content

COMPACT_MIN_DELTA_LOG_BYTES

Constant COMPACT_MIN_DELTA_LOG_BYTES 

Source
pub const COMPACT_MIN_DELTA_LOG_BYTES: usize = _ /* 65_536usize */;
Expand description

Floor under the compaction trigger, 64 KiB.

Without it a small document compacts on nearly every commit: measured history growth is ~6.7 bytes per operation while a shallow snapshot of a small document is under a kilobyte, so the ratio rule alone would fire constantly and rewrite a record per keystroke.