Only validate "from" pipeline structure once for $lookup

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: