Subject | Re: [firebird-support] Firebird 2.1.x Indexing |
---|---|
Author | Anderson Farias |
Post date | 2008-09-18T13:38:19Z |
Hi,
indexes (at least in FB v1.5). Note that IN (a, b, ..) is equivalent to 'a
OR b OR ...'.
circunstances it's good idea to apply some other better condition together,
if possible.
Regards,
Anderson Farias
> I remember from Helen Borrie's book that it said that the IN()Are you sure? Didn't she said that NOT IN do not use indexes? IN do use
> predicator doesn't use indexes to select the results.
indexes (at least in FB v1.5). Note that IN (a, b, ..) is equivalent to 'a
OR b OR ...'.
> what would be the recommended equivalentAlthougt IN does use indexes -- once for each value in the list --, in some
> approach in SQL to take instead to maintain a useful level of performance?
circunstances it's good idea to apply some other better condition together,
if possible.
Regards,
Anderson Farias