-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
-
(copied to CRM)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
An empty `$addfields` stage, like:
{{{$addFields: {} }}}
has no effect on query results, but can prevent pushing stages like $sort and $limit, removing opportunities for other optimizations like non-blocking sorts.
Rewriting the query to omit the empty `$addFields` should not alter the query, but may promote other optimizations.
- is related to
-
SERVER-26442 Push $sort before $project and $addFields
-
- Open
-