Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
None
-
None
-
Fully Compatible
-
ALL
Description
If a pipeline has a $graphLookup followed by a $match, we should push as much of the $match as possible before the $graphLookup, as we do with $lookup and $match. Note that unlike $lookup, $graphLookup cannot internalize part of the $match and execute it on the foreign collection, as this could unintentionally prevent us from exploring part of the graph.
Attachments
Issue Links
- depends on
-
SERVER-23725 Implement $graphLookup.
-
- Closed
-
- duplicates
-
SERVER-19153 Conditionally push $match before $project
-
- Closed
-
- is documented by
-
DOCS-9497 Docs for SERVER-23991: $graphLookup should optimize with $match
-
- Closed
-
- is related to
-
SERVER-19153 Conditionally push $match before $project
-
- Closed
-