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

COUNT_SCAN candidate plans should be evaluated with the multi-planner

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Currently when count query has a filter and there is an index The oldest index that has the prefix of the filter is picked. Yet this is not always optimal as there can be a smaller index which would require less scanning steps within the index. Distinct already implements a similar approach. The task here is to implement a similar selection method for count.

            Assignee:
            Unassigned Unassigned
            Reporter:
            peter.volk@mongodb.com Peter Volk
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: