Set replaceRoot's preserveOrderAndMetadata to true

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Verify that setting $replaceRoot's preserveOrderAndMetadata constraints field's value to true doesn't break any logic and that the REDUNDANT_SORT_REMOVAL rule which relies on checking a given stage's preserveOrderAndMetadata value, can successfully remove redundant $sorts that follow $replaceRoot stages.

      This logic will enable optimizations for redundant $sorts that follow $vectorSearch queries with storedSource: true.

            Assignee:
            Adithi Raghavan
            Reporter:
            Adithi Raghavan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: