Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Key Compression vs. Selectivity

Re: Key Compression vs. Selectivity

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 18 Dec 2006 19:07:50 -0000
Message-ID: <z9CdndCetayeehvYnZ2dnUVZ8siknZ2d@bt.com>


<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.html
Received on Mon Dec 18 2006 - 13:07:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US