Skip to main content

MAX_BATCH_SIZE

Constant MAX_BATCH_SIZE 

Source
pub const MAX_BATCH_SIZE: usize = 1_000_000;
Expand description

Hard upper bound on batch_size. Values above this (other than the special 0 “no batching” sentinel) are rejected at config validation time to prevent accidental O(total) buffering in the default implementation of Source::stream_pages.