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

Refactor $mergeCursors stage to allow it to be used to merge cursors on mongos

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.3
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Query 2018-03-12, Query 2018-03-26, Query 2018-07-02, Query 2018-07-16, Query 2018-07-30, Query 2018-08-13, Query 2018-08-27
    • 75

      This can be done as follow-on work after SERVER-24978, and will remove a layer of indirection between the pipeline executing on mongos and the AsyncResultsMerger. Today, the pipeline is attached via a DocumentSourceRouterAdapter which draws results from a RouterStageMerge which draws results from an AsyncResultsMerger.

      Once the $mergeCursors stage is using the AsyncResultsMerger, we can collapse that picture and eliminate the DocumentSourceRouterAdapter and RouterStageMerge.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: