Skip to main content

set_query_fetch_concurrency

Function set_query_fetch_concurrency 

Source
pub fn set_query_fetch_concurrency(fetch_concurrency: usize)
Expand description

Override the configured parallel-probe engine fetch concurrency (tests / tuning). Values above [MAX_QUERY_FETCH_CONCURRENCY] clamp to it. The value persists for the rest of the process unless reset.

ORDERING: the permit pool is sized once, when a QueryContext is built ([arm_pool_permits]), while plan-time pricing reads this knob live — calling this after contexts exist desynchronizes the two (plans price one fetch concurrency, the pool enforces another). Call it before any context construction, or after every live context is dropped.