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

conditionally push $match before $addFields in aggregation pipeline

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.2
    • Aggregation Framework
    • Fully Compatible
    • v3.4
    • Query 2017-01-23

    Description

      $addFields is a new stage for 3.4 for aggregation and the same optimization that was made for some $project in SERVER-19153 should be made for $addFields.

      (i.e. if $match is not on fields that are created/involved in $addFields then it can go before $addFields).

      Attachments

        Issue Links

          Activity

            People

              kyle.suarez@mongodb.com Kyle Suarez
              asya.kamsky@mongodb.com Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: