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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2023-04-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $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.

            Assignee:
            Matt Boros
            Reporter:
            Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: