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

Update $replaceRoot to support match pushdown and apply renames through GetModPathsReturn API

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • QO 2024-03-18, QO 2024-04-01

      Currently, the $replaceRoot stage returns `kAllPaths` in `getModifiedPaths`. For simple subdocument replacements, we can refine this to return a set of renames that can be used to rewrite the $match stage that we push in front of a $replaceRoot stage.

            Assignee:
            lynne.wang@mongodb.com Lynne Wang
            Reporter:
            lynne.wang@mongodb.com Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: