How do you track performance of [top] SQL queries over time?
Matthew_Sontum
Posts: 26 Bronze 1
In preparation for changing the database compatibility level for our primary database to 2014, we would like to see which queries and stored procedures are performing poorly after the switch is made in the staging environment. While I can do this to a limited extent by looking at top queries in Red Gate Monitoring, I was wondering if there was an automated way to alert on this. For example, alert on any stored procedures / queries that appear in the top 100 costliest queries by duration / CPU usage, whose average duration / CPU usage has more than doubled since a particular date (in this example, the date of the cut over)
In the general sense it would also be helpful to have this type of alerting in place at the stored procedure level, to see if any change in stored procedure functionality led to a significant decrease in performance.
In the general sense it would also be helpful to have this type of alerting in place at the stored procedure level, to see if any change in stored procedure functionality led to a significant decrease in performance.
Tagged:
Best Answer
-
squigley Posts: 249 Gold 1Hello Matthew,Thanks for the update on your end.Can you try the steps from the below article to see if that helps?
Answers
If you click into a top X query and scroll down, there is a Query history section where you can see the history of the different metrics.
Sean Quigley | Product Support Engineer | Redgate Software
Have you visited our Help Center?
And again, I am mainly concerned about relative performance, queries whose performance has slipped, not just the top 50 now.