pub const SCAN_STREAM_FRAME_ROWS: usize = 8_192; // 8_192usizeExpand description
Quads packed into one ScanPatternStream gRPC frame.
Used by: scan_pattern_stream_frames (and the standalone in-process
mirror) as the frame flush threshold for the streamed drain, and to
pre-size the walk-side framebuffer.
Changing it affects: the wire size per frame (~150 B/quad worst case
— keep it far below waratah_proto::GRPC_MAX_MESSAGE_SIZE) and the
partition-side memory ceiling (two outstanding frames on a channel of
capacity 2). Larger frames amortize per-message overhead but delay the
first bytes reaching the consumer and pin more framebuffer memory; the
Rows per streaming frame of a ScanPatternStream response — defined in
waratah_proto beside the rest of the wire contract (both the partition
packer and the compute-side drainer read it from there). The scan walk
itself is never gated by this value — only channel backpressure
pauses it.
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.