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

Refactor run_aggregate to use a helper function that prepares the pipeline

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Integration

    Description

      Preparation of the parsed mongo::Pipeline seems to be one logical step in the overall run_aggregate path. We should break it into a helper function to clean up the high-level path, whether the input is the aggregation plan and the resolved collation, and the output is the pipeline (which includes the expression context). In summary, this step will make the expression context, parse the pipeline, register query stats, optimize and rewrite the pipeline as necessary, and coordinate small checks along the way.

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: