Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23991

$graphLookup should optimize with $match

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Aggregation Framework
    • 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

          Activity

            People

              charlie.swanson@mongodb.com Charlie Swanson
              benjamin.murphy Benjamin Murphy
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: