-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The benchmark added in SERVER-136156 revealed that the majority of the time is spent in the dynamic_cast. We should amortise the type check like we do for DocumentSourceSingleDocumentTransformation and turn it into a typeid check since $match has no subclasses.