December 5, 2014 at 5:13 am
I've been looking to optimise queries in a database and so have been using the DMVs to find missing indexes. On this particular database, these show a huge potential benefit to adding a particular index.
Seems simple enough, but actually that exact index already exists (and is trusted). I've been trying to find discussion of such cases but have failed. The only possibility I can come up with is that the index has no equality columns, just a single inequality column and some included columns so I wonder whether the DMVs don't recognise the existing index as the same as the suggestion.
Has anyone encountered this situation?
December 5, 2014 at 5:32 am
December 5, 2014 at 5:59 am
Gazareth,
Thanks for the speedy reply.
Actually, I forgot to mention my SQL version - worryingly, it is 2012 SP2.
If it was fixed in 2012 RTM, has it perhaps been broken again in a subsequent service pack?
December 5, 2014 at 7:19 am
That is worrying!
Don't have any 2012 instances around to check on, so I'll resort to speculation - is the suggested index identical in the included columns, and their order too?
Cheers
January 9, 2015 at 9:50 am
January 9, 2015 at 1:08 pm
look at brent ozar's blitzindex, awesome tool and free. before you do what I did years ago and jump on the add index (unless this goes against sql you can verify is run multiple times) i would hold the results you get in a table. You can always get the onece a month query, one time query etc which will show up in most index analysis but needs to be taken with a grain of salt. I run blitzindex every 2 weeks and store the results in simple Acccess tables (after importing from Excel) If i see one showing up on a regular basis then I will act. This tool also shows you duplicate indexes, missing and unused. You would be stunned to see indexes which are really dupes which don't look that way (if you take Ozar's class on indexes gives a great explanation)
January 11, 2015 at 10:09 am
Yes, Brent Ozar's resources are really handy - I do use them myself, but how is BlitzIndex going to identify missing indexes? It's going to use SQL Server's DMVs so, if there's a bug in them, it will more than likely affect the results of BlitzIndex too...
January 11, 2015 at 9:26 pm
nharris (1/11/2015)
Yes, Brent Ozar's resources are really handy - I do use them myself, but how is BlitzIndex going to identify missing indexes? It's going to use SQL Server's DMVs so, if there's a bug in them, it will more than likely affect the results of BlitzIndex too...
Agreed.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply