Skip to main content

PUSHDOWN_TERMS_LIMIT

Constant PUSHDOWN_TERMS_LIMIT 

Source
pub const PUSHDOWN_TERMS_LIMIT: u64 = 24_576;
Expand description

The wire/terms limit of the pushdown family: the maximum number of distinct terms one broadcast allow-list may carry in a single request or admission decision. Historically this doubled as the driver page cut (the eager left-chunk size driver_chunk_rows clamps to, the driver’s rows-per-page pacing), which is why the name still reads as a row bound — see the coupling note at JoinStrategy and the sites that share the value.

Modern consumers of the limit as terms (the reason the name gained its current form — this number used to be called BROADCAST_ROW_THRESHOLD and that name read rows where the semantics are terms): the Threshold push gate’s over-threshold drop (PushedKeyVals::combine / join_keys_scan_filter), the per-chunk term slices of the parallel pushdown transport, the subtree push gate’s Hostable verdicts, slice_chunk_filters chunk sizing, and the wire-budget boundary guard (assert_wire_budget in the compute request builders — a detector, not a delivery mechanism: the plain whole-read road delivers an over-threshold list through the chunked transport, while the roads that bypass that hook ship their lists as-is today, so clustered-safe delivery there is follow-up work). One number serves both roles by design: a driver page cut at N rows holds at most N distinct terms, so single-page lists satisfy the terms limit by construction — that is the coupling the strategy stamp and the page cuts rely on (“over-threshold lists arise from join products”, not from driver pages).