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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: