Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: What are common indexes?
1 No.
If you know the city and the state is irrelevant, the index on (city,
state) will still be of use.
If the city is irrelevant, the skip scan algorithm in 9i will still use
this index.
Why do you insist on indexing everything?
2 Sort of. In most cases the state is irrelevant, as there are not that many place names occurring in more than one state. However if you create an index on (state, city) make sure you compress the first column.
Hth
Sybrand Bakker,
Senior Oracle DBA
Received on Mon Aug 15 2005 - 09:57:27 CDT
![]() |
![]() |