MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / run_compaction

Method run_compaction

nodedb/src/data/executor/handlers/compact/runner.rs:50–204  ·  view source on GitHub ↗

Run all maintenance/compaction tasks. Called periodically from the runtime event loop (idle maintenance) and on-demand via `PhysicalPlan::Compact`. When `force` is false (periodic), only compacts collections whose tombstone ratio exceeds the threshold. When `force` is true (on-demand), compacts everything. Per-database CPU budget is enforced when a budget tracker is installed. Collections whose

(&mut self, force: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 14

collectMethod · 0.80
database_for_tenantMethod · 0.80
sumMethod · 0.80
sealed_segmentsMethod · 0.80
compact_allMethod · 0.80
sweep_dangling_edgesMethod · 0.80
run_fts_compactionMethod · 0.80
get_mutMethod · 0.45
iterMethod · 0.45
tombstone_countMethod · 0.45