question

rudrapbiswas avatar image
rudrapbiswas asked

Missing index evaluation

I have have to evaluate a set of indices provided by DBA. These were all collected from the DMvs. How can I validate the missing index lists are really valid and it's going to improve any queries? Please suggest me the steps to be followed to evaluate on missing indices Regards, --Rudra
index
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image Grant Fritchey ♦♦ commented ·
There is no way to correlate the information from the missing index DMVs to a query. That's why I suggest gathering missing index information from the execution plan. I have a very fundamental version of the kind of query you need here: http://www.scarydba.com/2009/03/02/more-refinements-on-the-missing-indexes-query/
1 Like 1 ·
rudrapbiswas avatar image rudrapbiswas commented ·
Thanks all for your replies. How do I know which query the missing index is being suggested for? At this moment I am creating statistics and checking for the row density. But this is not complete analysis unless I find the exact query for which the suggested mising index was given for.
0 Likes 0 ·
Grant Fritchey avatar image Grant Fritchey ♦♦ commented ·
This site runs off of votes. Please mark all helpful answers by clicking on the thumbs up next to those answers. If any one answer lead to a solution, please indicate that by clicking on the check mark next to that answer.
0 Likes 0 ·
vivekyadav0212 avatar image
vivekyadav0212 answered
Missing Index suggested by DMVs are not always best option. It always depends on your read-write ratio. Get the stats and take decision wisely. Please check this article which will help you to get in detail: http://www.sqlperformance.com/2013/06/t-sql-queries/missing-index
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Cyborg avatar image
Cyborg answered
The recommendation cannot be trusted completely because of few reasons They will not suggest you Missing Clustered Indexes They always comes up with creating new indexes, it never suggest you to modify the existing indexes. It may recommend you to create index on columns that is already exists (Redundant or duplicate Index). You must always analyze the recommendations with the existing index before creating anything new, sometimes you may be good with modify your existing index rather than creating the recommendations.
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Blackhawk-17 avatar image Blackhawk-17 commented ·
And indexes require storage which may impact I/O performance. Big topic to initiate correctly.
1 Like 1 ·
Grant Fritchey avatar image
Grant Fritchey answered
Just pulling the recommendations from the missing index DMV misses a vital part of the equation, which query needed the index. I usually query directly against the execution plans, which also have missing index information, in order to know which query the missing index is being suggested for. That way, I have a query to test in order to evaluate if the missing index suggestion is worth anything.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.