-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Something that looks like this:
{$match:{}}, {$project:{}}, {$lookup:{}}, {$addFields:{}}, {$lookup:{}}, {$count:"c"}
is basically a $match followed by a $count. It would be nice if aggregation had a way of figuring that out.
- is related to
-
SERVER-73027 [CQF] Test that we eliminate $addFields, $project before $count
-
- Closed
-
-
SERVER-13703 Presence of extraneous $project causes a less efficient plan to be used
-
- Backlog
-