SERVER-138067ClosedFixed

Filter match expressions by path in narrowType

From the benchmarks added in SERVER-137775. On refers to type inference flag being on. This is the time taken for a single canPathBeArray call on path 'x' in various pipelines. |Benchmark|Size|Off|On| |UnrelatedPredicates|10 / 100 / 1000|0.031|3.41 / 97.2 / 7950| |UnrelatedSubpathPredicates|10 / 100 / 1000|0.031|4.68 / 112 / 8218| |UnrelatedMatches|10 / 100 / 999|about 0.055|3.46 / 99.7 / 8014| In all three cases, type inference evaluates all 999 or 1000 predicates even though only

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.