Skip to main content

should_compact

Function should_compact 

Source
pub fn should_compact(
    delta_log_bytes: usize,
    compacted_doc_bytes: usize,
    commits_since_compaction: u32,
) -> bool
Expand description

Whether a document should be rewritten as a fresh compacted snapshot.

compacted_doc_bytes is the size of the last snapshot written for the document (zero if it has never been compacted).