Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Implementation of boolean types.
"Holger Baer" <holger.baer_at_science-computing.de> wrote in message news:db85sc$ahd$1_at_news.BelWue.DE...
> Matthias Hoys wrote:
> > 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
I agree that if the data is evenly distributed, no index will (should) be
used. But with data skewing, a normal B-Tree index (+ histograms) could be
useful, right ?
And would there be any difference in performance between a NUMBER(1) and
CHAR(1) datatype ? Because this was the original question.
Received on Fri Jul 15 2005 - 06:46:58 CDT
![]() |
![]() |