BF-44503: instruction-count regression on BM_FIND_ONE (benchmarks_sep) from 8888ec0.
CanonicalQuery::initCq evaluated getQueryKnobConfiguration().getDisablePlanCache() first when computing _disablePlanCache. That call materializes the knob configuration, adding work to the IDHACK fast path even though IDHACK queries are never cached.
Reorder so isIdHackQuery() short-circuits first, avoiding materialization for IDHACK and restoring the BM_FIND_ONE instruction count.
- related to
-
SERVER-133279 isIdHackQuery flag can be stale for $lookup queries
-
- Closed
-