-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
We can use the sort order from OrderedPathSet and check prev == cur, rather than re-scanning the WIP BSON each time
This will improve performance classic $match performance when DepsTracker contains duplicate toplevel fields.
Same principle applies to MatchProcessor::hasUniquePrefixes, though that's not currently quadratic.