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

DocumentSourceSequentialCache doesn't clone, ruining non-correlated $lookup pipeline caching in sharded deployments

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.4.0, 5.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • ALL
    • Query Optimization 2021-06-28

      As outlined in SERVER-57483, the serialization code isn't appropriate as a mechanism to clone this stage. We should investigate a more robust way to distinguish the two use cases of serializing to the shards and serializing for being copied.

      The impact of this problem is quite large. It means that your performance of a non-correlated $lookup might degrade when you move from a replica set to a sharded cluster.

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: