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

Only validate "from" pipeline structure once for $lookup

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • 0

      For each local document matched in $lookup we will create a pipeline representing the query against the "from" collection. This results in repeated validation of an identical pipeline structure. We should look to validate this structure once per $lookup invocation rather than once per "from" pipeline.

      This shows up as a $lookup hotspot under VTune in the "uassertNoDisallowedClauses" method.

            Assignee:
            jacob.evans@mongodb.com Jacob Evans
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: