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

Investigate returning to original execution strategy when lookup 'from' is unsharded

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2021-09-06, QO 2021-09-20

      As part of sharded $lookup, if the origin collection is sharded we will allow the $lookup stage to be moved to the shards part of the splitPipeline. We believe that executing the $lookup in parallel will be beneficial in most cases, however there are times when this is the wrong execution strategy. To avoid regressing existing workloads where the 'from' collection is unsharded, investigate the feasibility of "backing out" of this execution strategy in the DistributedPlanLogic of the DocumentSourceLookUp. The check for whether the 'from' collection is unsharded must be concurrency safe.

            Assignee:
            hana.pearlman@mongodb.com Hana Pearlman
            Reporter:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: