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

Collapse project stage in a pipeline so the projection occurs in DocumentSourceCursor

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • None
    • Query

      In SERVER-24860 an optimization was added to skip the aggregation and answer the pipeline using just a query plan, if the pipeline can be collapsed into a single $cursor stage. Currently a pipeline with a $project stage can be collapsed if we can generated a covered query plan. We should be able to extend it to uncovered plans and collapse the $project stage, if it is a simple projection without complex pipeline expressions.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: