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

conditionally push $match before $addFields in aggregation pipeline

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.2
    • None
    • 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

        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: