Skip to main content

DEFAULT_SCAN_CHUNK_SIZE

Constant DEFAULT_SCAN_CHUNK_SIZE 

Source
pub const DEFAULT_SCAN_CHUNK_SIZE: u64 = 1_024;
Expand description

Default number of entries materialized per chunked scan_range call.

Chosen so a forensics scan of a multi-million-entry run keeps the live working set bounded while amortizing the per-call transaction overhead. Tune through EventStoreReader::scan_range_chunked when a workload prefers different bounds.