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: BITMAP Versus B-TREE

Re: BITMAP Versus B-TREE

From: Jared Still <jkstill_at_gmail.com>
Date: Tue, 26 Jun 2007 12:28:25 -0700
Message-ID: <bf46380706261228q68c982f9hd253f7e1cf6f798e@mail.gmail.com>


On 6/25/07, Raj Mareddi <yoursraju007_at_gmail.com> wrote:
>
> Well, These indexes do exist already. For example, there is a column
> called FLAG with values of 'YES' or 'NO' and there are 6 Millions of
> rows in the index... but distinct values are only two ('YES' and
> 'NO')... Im just thinking to convert this to Bitmap... did couple of
> ones and seen better performance... but just thining about loading on
> these tables...

You may want to consider how this index is used, or even if it is ever used at all. The CBO may be ignoring it entirely, or possibly even using it when it is not a good idea.

What is the skew of these 2 values?

To engage in a bit of hyperbole: If the skew is 99% NO, and there are never any quries with YES as a predicate, the index is just a drain on resources.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jun 26 2007 - 14:28:25 CDT

Original text of this message

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