-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Performance, Querying
-
Fully Compatible
-
ALL
-
v4.0, v3.6
-
Query 2019-12-02, Query 2019-12-16
-
(copied to CRM)
SERVER-39109 inadvertently thwarted an optimization to re-compute the set of fields needed for the aggregation. Instead of re-computing the dependencies in such a scenario, it will get confused because the $cursor stage has already been added and mistakenly report that all fields are needed for the aggregation. We should restore the optimization.