Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Implementation of boolean types.
Matthias Hoys wrote:
> "Eagle Fan" <eagle.f_at_gmail.com> wrote in message > news:1121421448.738223.140180_at_f14g2000cwb.googlegroups.com... >
> > > Well it can only be '1' or '0'. An index + up-to-date statistics (possibly > with histograms if distribution is skewed) should make queries ultra-fast, > independent of the data type. > >
A common misconception. Since it can only be 0 or 1, given a equal distribution it's very unlikely to use an index. If it's highly skewed, a FBI might help if using a function that returns NULL for the value you're not interested in. Since NULLs are not indexed, this might lead to a very small index.
Cheers,
Holger
Received on Fri Jul 15 2005 - 06:15:23 CDT
![]() |
![]() |