Skip to main content

COMPACT_DELTA_LOG_RATIO

Constant COMPACT_DELTA_LOG_RATIO 

Source
pub const COMPACT_DELTA_LOG_RATIO: usize = 4;
Expand description

Compact once the delta log is this many times the compacted document.

Bounds worst-case storage at roughly five times the document’s state size, which is the trade being made: replay work and disk against how often a full snapshot is rewritten.