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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Index help

Re: Index help

From: Daniel Fink <Daniel.Fink_at_Sun.COM>
Date: Mon, 26 Jul 2004 07:46:24 -0600
Message-id: <41050B30.1020301@sun.com>


Assuming a uniform distribution, an index would probably make sense. If the data is skewed (1 value is in 80% of the rows, etc.), an index may not make sense. If the CBO uses bind peeking at parse time, you could end up with a poor execution plan. For example, the first call uses the 80% value in the predicate, so Oracle decides to use a FTS. Subsequent executions use the other values or even a value that does not exist. These executions are also going to use an FTS, when an index lookup is probably faster.

Daniel

M.Godlewski wrote:
> 6 distinct values for ida3a5



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon Jul 26 2004 - 08:43:00 CDT

Original text of this message

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