Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Index help
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
-- 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
![]() |
![]() |