SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The Ultimate Duplicate Index Finder


The Ultimate Duplicate Index Finder

Author
Message
YeshuaAgapao
YeshuaAgapao
SSC Eights!
SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)

Group: General Forum Members
Points: 929 Visits: 211
Comments posted to this topic are about the item The Ultimate Duplicate Index Finder



Glen Weldon Maney
Glen Weldon Maney
Old Hand
Old Hand (391 reputation)Old Hand (391 reputation)Old Hand (391 reputation)Old Hand (391 reputation)Old Hand (391 reputation)Old Hand (391 reputation)Old Hand (391 reputation)Old Hand (391 reputation)

Group: General Forum Members
Points: 391 Visits: 392
I am not sure I understand what is considered a duplicate index. It appears that if more than one index starts with the same field, that it is considered a duplicate index. I have 4 indexes on one table that all have the same field as the first member. Why are these considered duplicate indexes?

Thanks
Glen
YeshuaAgapao
YeshuaAgapao
SSC Eights!
SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)SSC Eights! (929 reputation)

Group: General Forum Members
Points: 929 Visits: 211
It only outputs indexes that have common first seek columns. Indexes that have common first seek columns are dupes or might be merge-able, or the one of the indexes might be able to get their seek columns rearranged so you can have more index usage possibilities without adding more indexes.

I would only intentially have indexes with common first seek columns on tables with hardly any write activity.

The only other reason to dupe on first seek columns is to dupe on PKs that experience a lot of multi-row up-stream (from many to one; Where is on the many table) joins that cause bookmark lookups. PKs (also UQ constraints) can't have include columns, so you have to create another nonclustered index that has the seem seek as the PK and then add include columns.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search