Subject | Re: Performance. |
---|---|
Author | Svein Erling |
Post date | 2004-03-19T10:28:49Z |
--- In firebird-support@yahoogroups.com, "colinriley666" wrote:
requirements to believe using an index would help, and since it has
neither an index for 2 nor for 0 (or any other constant or expression)
it decides to avoid the index entirely. Though I'm basically just
happy that it works and have never really tried to figure out why ;o)
Set
> Many thanks. its speeded up enormously. The sql select that iWell, I think that when using OR, Firebird needs an index for both
> posted was trimmed down for clarity. Thats why the index was
> specified a 2nd time.
> I dont understand, however, why the "or 2 = 0" inhibits the use of
> the index.
requirements to believe using an index would help, and since it has
neither an index for 2 nor for 0 (or any other constant or expression)
it decides to avoid the index entirely. Though I'm basically just
happy that it works and have never really tried to figure out why ;o)
Set