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

Consider including the EOF bonus in the plan cache score

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • Fully Compatible
    • Query 2021-01-25, Query Optimization 2021-02-22

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: