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

[CQF] Reorder sargable nodes to better support merging

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2023-06-26, QO 2023-07-10, QO 2023-07-24, QO 2023-08-07, QO 2023-08-21, QO 2023-09-04

      Currently we reject sargable node merging if either one of them has a non-trivial disjunction (see intersectPartialSchemaReqMap).

      We may however have cases say with 3 sargable nodes where the first and last ones are trivial disjunctions while the middle one is not, and thus do not merge any of them.

       

      We should add a rewrite to optionally reorder sargable nodes to support the best merging strategy.

            Assignee:
            jess.balint@mongodb.com Jess Balint
            Reporter:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: