Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9501

Docs for SERVER-21612: Combine post $lookup $match on looked up field

    XMLWordPrintable

    Details

    • # Replies:
      0
    • Last comment by Customer:
      true

      Description

      Engineering Ticket Description:

      In the scenario where the agg pipeline is:

      {$lookup:{from:"c2",localField:"foo",foreignField:"bar",as:"c2s"}},
      {$unwind:"$c2s"},
      {$match:{"c2s.f2":someValue}}
      

      we should be able to merge the query for f2:someValue into the query into "c2" as find:{bar:"$foo", f2:someValue} as a performance optimization.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since reply:
                  2 years, 49 weeks, 6 days ago