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

Consider adding a plan cache serverStatus counter for queries which are not eligible for caching

    • Query Optimization
    • Fully Compatible
    • QO 2024-01-22

      This is a follow up ticket from SERVER-70025.

      Currently we only count cache plan cache hits and misses, regardless of the query type. That is, we expect a plan for the given query to be in the cache, and as such can be recovered from the cache, or missed from the cache, and needs to be replanned.

      However, there is a difference between "didn't use cache because there wasn't a cache entry" and "didn't use cache because this query is ineligible for caching". 

      We may want to consider adding a third counter (in additional to "hits" and "misses") to account for this difference. 

            Assignee:
            c.alonso@mongodb.com Carlos Alonso Pérez
            Reporter:
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: