Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Key Compression vs. Selectivity
<hasta_l3_at_hotmail.com> wrote in message
news:1166423707.587373.30730_at_80g2000cwy.googlegroups.com...
Jonathan Lewis a écrit :
> "Robert Klemme" <shortcutter_at_googlemail.com> wrote in message
> >
> > The general rule of thumb for indexing is to put the most selective
> > columns first in order to foster fast lookups. (Of course there are
> > other considerations involved, which single index covers most queries
> > etc.)
>
> The "most selective first" has always been a little
> flexible (at least since 6.0 appeared)
Jonathan and Robert....
Why would the rule of thumb "put the most selective column first" be a good one to any degree ?
(let's assume that permutations of index columns don't impact the number of queries covered)
I'm sorry, the remark - with its reference to 6.0 was intended to be ironic, I should have included a smilicon on some sort - e.g. ;-)
The 'most selective first' has basically been an inappropriate guideline since 6.0 came in.
Considerations of how the index is used are far more important.
-- Regards Jonathan Lewis http://jonathanlewis.wordpress.com Author: Cost Based Oracle: Fundamentals http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.htmlReceived on Mon Dec 18 2006 - 13:07:50 CST
![]() |
![]() |