Skip to main content

sort_units

Function sort_units 

Source
fn sort_units(units: &mut [Unit])
Expand description

Orders units by minimum primary key, then by time, so adjacent units are key-adjacent. Compaction outputs and time-sliced flushes split a window by key ranges, so merging neighbors in this order keeps outputs from covering the key ranges of files left behind.