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

Simplify BSON produced by $lookup for foreign field local field join

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2023-04-03

    Description

      $lookup wraps its $match join in an $and when there is potentially one predicate, with potentially empty predicates included. Since we re-optimize and canonicalize the pipeline for every outer document, it's best for us to produce simpler BSON if possible in $lookup.

      Attachments

        Activity

          People

            matt.boros@mongodb.com Matt Boros
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: