Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: ** bitmap index for lot of nulls
Hi!
Bitmap indexes are suited best for low cardinality columns in tables which are read only, such is gender, marital status or similar (a bitmap is needed for every different value). Since your non-null rows are unique, bitmap index isn't good choice.
Note that a regular single column index won't index any nulls. (In your 95% case it's not a problem, because if you'd search nulls, a table scan would be cheaper anyway, but if you want nulls to get indexed, you could create a composite index with your column + another not null column).
Tanel.
Hi,
I am creating an index on a column that is null in most (over 95%) of the rows. In the rest of the rows it is expected to be unique. Is bitmap index suited for this? Thanks You.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Tanel Poder
INET: tanel.poder.003_at_mail.ee
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Aug 04 2003 - 13:19:24 CDT