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

Heuristic CE for SargableNode

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • QO 2022-06-13, QO 2022-06-27, QO 2022-07-11, QO 2022-07-25
    • 168

      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?

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

              Created:
              Updated:
              Resolved: