Subject | Re: [firebird-support] Index not used by "where xxx not null" query? |
---|---|
Author | Kjell Rilbe |
Post date | 2006-02-27T15:44:28Z |
Nando Dessena wrote:
the first non-null record (skip all the nulls - should be easy using the
idnex, or am I wrong?) and then return that record and all that follow
until the end.
Or would that be less efficient than a straight table scan?
Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> it's the other way around. If nulls are at the beginning then an indexThe same index COULD be used for "is not null" - use the index to find
> can be used for "is null". And that's actually the state of affairs
> (your case 2, I mean) I think.
the first non-null record (skip all the nulls - should be easy using the
idnex, or am I wrong?) and then return that record and all that follow
until the end.
Or would that be less efficient than a straight table scan?
Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64