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

Investigate replacing terminal unwind of foreign key in $lookup with a conditional one

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc2, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • QE 2022-05-02

      Currently, if the terminal value in the foreign key is a scalar, we'll add the scalar to the stream of foreign key values twice, first from the unwind and then as a "whole value". We should investigate whether making the unwind conditional on the terminal being an array would improve perf of NLJ.

            Assignee:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: