SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Seeing Double

By Steve Jones, 2008/04/25

Total article views: 89 | Views in the last 30 days: 89

Recently someone pointed out that SQL Server allows duplicate indexes and they weren't sure why this was the case. The need, or benefits/disadvantages of duplicate indexes has been debated, but I haven't really seen a case or reason why duplicate indexes are allowed.

There's a Connect item on this open, and the feedback from Microsoft says there are no advantages and potential disadvantages, but it's in there for backwards compatibility. Personally I'm not sure why you need this for compatability. If you removed duplicates, wouldn't the remaining index be used? Could you just ignore some index hint if the index was gone?

In any case, perhaps there is some reason that I haven't heard yet, so this Friday's poll:

Do We Need Duplicate Indexes?

Is there some case where duplicates make sense? I'd argue that non-clustered and clustered indexes with the same keys are not duplicates and there could be cases where you'd want that. If you had one index with ASC and one with DESC, are they the same? I'd argue no.

I've heard the the new filtered indexes might make do with the same columns and a different filter, but wouldn't those indexes be different?

I'm stumped. Can anyone come up with a reason to have duplicate indexes?


The Voice of the DBA Podcasts

Everyday Jones

The podcast feeds are now available at sqlservercentral.podshow.com to get better bandwidth and maybe a little more exposure :). Comments are definitely appreciated and wanted, and you can get feeds from there.

Overall RSS Feed: or now on iTunes!

Today's podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. Support this great duo at www.everydayjones.com.

I really appreciate and value feedback on the podcasts. Let us know what you like, don't like, or even send in ideas for the show. If you'd like to comment, post something here. The boss will be sure to read it.

By Steve Jones, 2008/04/25

Total article views: 89 | Views in the last 30 days: 89
Your response
 
 
Related tags

Editorial    
 
Related content

What Should A DBA Be Doing?

By Steve Jones | Category: Editorial
(not yet rated) | 620 reads

Not Just At Home

By Steve Jones | Category: Editorial
(not yet rated) | 235 reads

Dog Food

By Steve Jones | Category: Editorial
(not yet rated) | 145 reads

Halo 3

By Steve Jones | Category: Editorial
(not yet rated) | 158 reads
Already registered?  

Free registration required

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Register

E-mail address:
Password:
Password (confirm):

  

Subscriptions

We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.

Steve Jones
Editor, SQLServerCentral.com