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

XMLWordPrintableJSON

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

      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 - Query Team (Inactive)
              Reporter:
              Anton Korshunov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: