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

XMLWordPrintableJSON

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

      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
              Reporter:
              Lynne Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: