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

Track history of query plan changes in mongod

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics, Querying
    • Labels:
      None
    • Query Execution

      We would like to have a data source for historical query plans and plan changes.

      Recording the time a new query shape appeared, or the time an existing shape acquired a new plan, would be very helpful in diagnosing sudden shifts in database behaviour (e.g., the ability to state unequivocally that a new query shape first appeared just before a performance disruption).

      recording new plans in the mongod log may be adequate. Maintaining an in-memory collection summarizing these and including other useful statistics like execution counts, average latency, average time waiting on locks, etc., would be even more useful.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            mark.brinsmead@mongodb.com Mark Brinsmead
            Votes:
            3 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated: