Skip to main content

RETENTION_BATCH_SIZE

Constant RETENTION_BATCH_SIZE 

Source
const RETENTION_BATCH_SIZE: usize = 1000;
Expand description

Rows retracted per retention step.

Retention has to be bounded: the OCC path refuses a selection larger than max_result_size before submitting any write, so an unbounded delete over a large backlog would fail identically on every sweep and never shrink the table. Retention repeats bounded batches across sweeps until it drains the fixed-cutoff backlog.