Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Performance Dashboard Expand / Collapse
Author
Message
Posted Wednesday, August 26, 2009 3:47 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, July 25, 2014 2:27 PM
Points: 94, Visits: 1,461
Hi,
I have a question regarding the missing indexes section of the performance dashboard. What is the best way to approach the recommended indexes?
Post #777915
Posted Wednesday, August 26, 2009 5:52 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 4:09 PM
Points: 21,252, Visits: 14,960
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


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #777976
Posted Thursday, August 27, 2009 7:03 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, July 25, 2014 2:27 PM
Points: 94, Visits: 1,461
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.
Post #778247
Posted Thursday, August 27, 2009 7:15 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 11:13 AM
Points: 15,527, Visits: 27,909
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
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #778261
Posted Thursday, August 27, 2009 9:57 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 4:09 PM
Points: 21,252, Visits: 14,960
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


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #778435
Posted Thursday, August 27, 2009 11:18 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 11:13 AM
Points: 15,527, Visits: 27,909
Oops. I forgot to add a link to the blog.

Here it is.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #778505
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse