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

Avoid attaching cursor/mergeCursor stage twice in $unionWith explain

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • Hide

      run the following: db.runCommand({explain: {aggregate: "coll", pipeline: [{$unionWith: "coll_2"}], cursor:

      {batchSize: 101}

      , allowDiskUse: true}})

      Show
      run the following: db.runCommand({explain: {aggregate: "coll", pipeline: [{$unionWith: "coll_2"}] , cursor: {batchSize: 101} , allowDiskUse: true}})
    • Query 2020-03-23
    • 17

          Assignee:
          ted.tuckman@mongodb.com Ted Tuckman
          Reporter:
          ted.tuckman@mongodb.com Ted Tuckman
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: