Re: Slow response on a query

From: Ron Reidy <rereidy_at_indra.com>
Date: Mon, 17 Dec 2001 17:28:11 -0700
Message-ID: <3C1E8D9B.EFB71FCA_at_indra.com>


Álvaro Palma Aste wrote:
>
> Hi.
>
> I´ve a query which looks like this
>
> select a
> from b
> where c = value
>
> I also have an index for that query, and this works really fast.
>
> But if I replace my query:
>
> select a
> from b
> where c is not null
>
> it becomes really slow!!!. So my question is: Is there a way so I create an
> index for that query (over nulls fileds in a table)
>
> Thanks a lot
>
> --
> Atte.
> Álvaro Palma Aste
> Grupo de Ing. Biomédica
> Depto. de Ing. Eléctrica - U. de Chile
> apalma_at_cec.uchile.adivina
No. NULL values are not represented in indexes. Look at using/creating a function based index using the NVL() function.

-- 
Ron Reidy
Oracle DBA
Reidy Consulting, L.L.C.
Received on Tue Dec 18 2001 - 01:28:11 CET

Original text of this message