August 26, 2009 at 3:47 pm
Hi,
I have a question regarding the missing indexes section of the performance dashboard. What is the best way to approach the recommended indexes?
August 26, 2009 at 5:52 pm
I like to affix a cost / benefit value to the missing index (number of updates vs. number of lookups as part of it). From there, try to associate the most beneficial recommended missing index with poorly performing queries.
Test your indexing in dev and move the indexes up through the ranks to prod during maintenance windows.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 27, 2009 at 7:03 am
Thank for the reply, the issue I'm having is that the report is showing about 200 missing/recommend indexes. Based upon the different column values, which one should be looked at in the order of importance.
August 27, 2009 at 7:15 am
Ryan D. (8/26/2009)
Hi,I have a question regarding the missing indexes section of the performance dashboard. What is the best way to approach the recommended indexes?
Slowly, maintain eye contact, and carry a really big stick...
Oh, you mean how do decide which one's to implement.
I wouldn't recommend that you use that data by itself. I'd combine it with a collection of long running queries and most frequently called queries. You'll need to collect that with a server side trace. Then, unfortunately, there's no easy way to marry the missing index data to specific queries... Unless you do something like I blogged about here. There are some other people that have also posted scripts that do the same thing (several of them better than mine) so you can do a search to track them down.
Once you decide that a query and a missing index match up and you're ready to use the index, test it. The missing index information is based on estimates within the optimizer, and it can be wrong.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
August 27, 2009 at 9:57 am
Ryan D. (8/27/2009)
Thank for the reply, the issue I'm having is that the report is showing about 200 missing/recommend indexes. Based upon the different column values, which one should be looked at in the order of importance.
You more than likely will not need to implement all of the "missing" indexes shown in the report. Sometimes the report will show multiple indexes for the same thing.
As Grant has mentioned, there are scripts here on SSC for determining which indexes might be of more use than others (based on cost/benefit).
Just Browse the Index Management section of the scripts area here at SSC - or do a search for index scripts. There are several scripts that could be of use.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 27, 2009 at 11:18 am
Oops. I forgot to add a link to the blog.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply