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

[CQF] Reorder sargable nodes to better support merging

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: