Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overhead with 2 unique indexes

Status
Not open for further replies.
Jun 27, 2001
837
US
I have a 3rd party app which has a clustered unique index on 2 fields, and then another unique index on the same 2 fields are 3 others. I have been having some errors coming back from my monitoring software with this table. With 2 unique indexes aren't I asking for a lot of extra overhead with inserts/updates
 
That doesn't make sense having two unique indexes on the same fields?? Can you drop the non-clustered one? I would also think that would confuse the query optimizer. Which index would it know to use. Obviouly the clustered index would be better but could it use the non-clustered? If not, why bother wasting the space.

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Should have elaborated, my issues are with inserts. To me this is extra overhead on a multi million row table
 
To add a few more thoughts....the physical data is stored in the clustered index. The non-clustered index is just pointers to the clustered index. So yes, this is added overhead that is not buying you anything.

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
will the vendor complain if you drop it?


- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Maybe they don't have to know... : )


- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top