Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> UNNecessary indexes ??
Hello All,
We have a table for (eg) say
table x with 4 number cols (x1,x2,x3,x4)..
There is a pk constraint on x1 an a unique key constraint on x2,x3
Now we also have non-unique indexes on
index x2_idx on col x2
index x2_x4_idx on col x2,x4
I would presume that index x2_idx alone is not needed as the unique index
or index x2_x4_idx will satisfy
queries with col x2..
My question is can i also eliminate index x2_x4_idx ??
If i have query with the where clause x2 = 333 and x4 = 444 then would
using index x2_x4_idx be good or
using unique index be a good choice , since CBO does a index range scan
while using both the indexes...
I am trying to eliminate unnecessary indexes created by developers ....
Thanks,
Sathish
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
INET: sat0789_at_fastmail.fm
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 15 2003 - 13:51:55 CDT