Reputation: 1650
So here I am looking at this huge oracle 10g table. I looked at its indexes and see that ALL of the columns are under one unique index. Does this provide actually provide any performance benefits?
Upvotes: 0
Views: 232
Reputation: 41242
From a performance standpoint, I would say that having all fields in a single index (unique or not) is generally not a good idea.
a
in the WHERE clause cannot use that index.Upvotes: 0
Reputation: 132620
Possibly, possibly not. It could be that the unique index is implementing a constraint to ensure that rows are indeed unique, and is not intended to help with performance at all. There could be a performance benefit for indexed lookup queries, because they won't need to access the actual table at all.
On the face of it it sounds like this should have been created as an INDEX ORGANIZED table.
Upvotes: 2