Consider including the EOF bonus in the plan cache score

XMLWordPrintableJSON

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

      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
            Reporter:
            Chris Harris
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: