Skip to main content

PUSHDOWN_MIN_POLLUTION_MILLI

Constant PUSHDOWN_MIN_POLLUTION_MILLI 

Source
pub const PUSHDOWN_MIN_POLLUTION_MILLI: u64 = 300;
Expand description

Minimum milli-scale vocabulary pollution for an over-threshold Broadcast term list to stay on the parallel pushdown transport, instead of dropping the key to the unfiltered whole read. Pollution is the fraction of the probed arm’s rows that no pushed term can match: at or below this threshold the whole read fetches mostly useful rows and is the cheaper road (no seeks at all); above it the majority of a whole read would be dead rows and the seek-union transport wins. An unresolvable estimate (probe key domain unknown) reads as maximally polluted, so the gate can only ever keep the transport — it never introduces a whole read the pre-gate code would not have taken.

Changing it affects: which over-threshold Broadcast arms fetch their whole probe relation unfiltered versus as chunked filtered fetches. The value 300 means “the pushed list reaches ≥70% of the probe’s key domain”; lower it to push more arms through the seek-union transport, raise it to prefer whole reads. The estimate carries no rows-per-key information (key-vocabulary ratio, not row ratio), so treat it as advisory per the stats invariant in ARCH.md §10.