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

Consider including the EOF bonus in the plan cache score

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Query 2021-01-25, Query Optimization 2021-02-22

      Currently, EOF bonuses are stripped from plan scores prior to being saved in the plan cache. This comment implies that the logic relates to plan eviction. This seems to no longer apply due to the replanning mechanism that was introduced in 3.0.

      This may result in getPlansByQuery() output where the first plan listed (the winning/cached plan) has a lower score than subsequent entries.

            Assignee:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Reporter:
            christopher.harris@mongodb.com Chris Harris
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: