Add ability for DocumentSourceCursor to coalesce with a $project stage if it is doing an equivalent projection

XMLWordPrintableJSON

    • Fully Compatible
    • Query 2017-04-17, Query 2017-05-08, Query 2017-05-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Once SERVER-12015 is fixed, the cursor stage will have the ability to handle a simple inclusion projection itself. If the cursor source has a projection, and there is a $project stage in the pipeline with the same specification, we should be able to remove it.

      Note this might get messy/complicated in terms of nested projection objects, particularly when including sub-fields of _id.

            Assignee:
            Nicholas Zolnierz
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: