Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Question on NULLs in index

Re: Question on NULLs in index

From: Bert Scalzo <bscalz01_at_7-11.com>
Date: Wed, 15 Jul 1998 08:18:51 -0500
Message-ID: <6oiag4$5h5$1@news.ses.cio.eds.com>


The rules are:

  1. NULLS are not stored in B-TREE indexes, and thus where clauses with IS NULL or IS NOT NULL will do full tables scans
  2. BITMAP indexes do handle NULL values, but since BITMAPs work with the cost based optimizer -- the statistics and/or histograms you gather may still make the full table scan appear more desireable

The point is that NULLs and indexes generally don't go together in Oracle explain plans.

Bert Scalzo
DBA
EDS Received on Wed Jul 15 1998 - 08:18:51 CDT

Original text of this message

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