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

Heuristic CE for SargableNode

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • Fully Compatible
    • QO 2022-06-13, QO 2022-06-27, QO 2022-07-11, QO 2022-07-25
    • 168

    Description

      Implement heuristic CE for SargableNode that takes into account the actual predicates (or equivalent intervals).

      That is, compute specific

      • equality (or point intervals): [c,c]
      • closed-range inequality: [c1, c2]
      • one-sided inequality: (minKey, c]
      • inequalities (interval ends) can be either open or closed

      Each of the cases above will have a different default selectivity, which also depends on the actual collection cardinality.

      Consider using metadata for estimation (if already not used):

      • multikey info
      • unique info (_id field)
      • anything else?

      Attachments

        Activity

          People

            timour.katchaounov@mongodb.com Timour Katchaounov
            timour.katchaounov@mongodb.com Timour Katchaounov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: