Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: index selectivity
Hi.
You are correct assuming the usage of constants. If you are using bind variables - optimizer still assumes even distribution and does not use indexes.
Michael.
In article <380C5B43.1C98_at_yahoo.com>,
connor_mcdonald_at_yahoo.com wrote:
> The optimiser assumes an even distribution. But you can create
> histograms on columns during analyze (see the doco for ANALYZE) which
> then stores the distribution of the data. The optimiser can then use
> this to make more informed decisions on whether to use the index or
not.
>
> HTH
> --
> ===========================================
> Connor McDonald
> "These views mine, no-one elses etc etc"
> connor_mcdonald_at_yahoo.com
>
> "Some days you're the pigeon, and some days you're the statue."
>
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Oct 20 1999 - 15:21:50 CDT