Skip to main content

SORT_RANK_STRIDE

Constant SORT_RANK_STRIDE 

Source
const SORT_RANK_STRIDE: i64 = 1_000;
Expand description

Gap between adjacent sort ranks assigned by Db::compute_sort_keys.

Ranks are stored as multiples of this value (1 000, 2 000, 3 000, …) so that a single newly-added book can be placed at the midpoint between its two neighbours without touching any other row. See Db::insert_sort_rank.