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

Correct logic to re-compute dependencies after absorbing a $sort into query layer

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Query 2019-12-02, Query 2019-12-16

      SERVER-39109 inadvertently thwarted an optimization to re-compute the set of fields needed for the aggregation. Instead of re-computing the dependencies in such a scenario, it will get confused because the $cursor stage has already been added and mistakenly report that all fields are needed for the aggregation. We should restore the optimization.

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

              Created:
              Updated:
              Resolved: