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

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

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

      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@mongodb.com Nicholas Zolnierz
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: