Skip to main content

SCAN_STREAM_FRAME_ROWS

Constant SCAN_STREAM_FRAME_ROWS 

Source
pub const SCAN_STREAM_FRAME_ROWS: usize = 8_192;
Expand description

Rows per streaming frame of a ScanPatternStream response. This is the wire-chunking unit of a scan (the partition packs a walk into frames of this many rows and pauses on channel backpressure) — it is not a compute-side demand: clients request a row count per RPC and the response arrives as ceil(n / SCAN_STREAM_FRAME_ROWS) frames, reassembled by the client-side drainer. Compute consumers therefore never see frame boundaries; the constant matters here on the wire and as the transport floor for compute-side page demands.