Subject | Re: containing, like, = |
---|---|
Author | Richard Saeger |
Post date | 2001-09-04T06:39:18Z |
--- In ib-support@y..., hans@h... wrote:
...
What queries don't use indexes?
InterBase doesn't employ an index in the following operations, even
if an index exists for the specified columns:
Search criteria for CONTAINING, LIKE, and <> inequality operations
Columns used in aggregate functions, like COUNT()
Other expressions, like UPPER()
...
I think LIKE 'XY%' use indexes, but LIKE '%XY%' doesn't.
Regards
Richard
> A partial solutionFrom IB OpGuide.pdf:
>
> WHERE UPPER(NAME) LIKE 'WOOD%'
>
> I don't know if this uses an index or not and if it
> degrades speed significantly, since UPPER is not a UDF.
...
What queries don't use indexes?
InterBase doesn't employ an index in the following operations, even
if an index exists for the specified columns:
Search criteria for CONTAINING, LIKE, and <> inequality operations
Columns used in aggregate functions, like COUNT()
Other expressions, like UPPER()
...
I think LIKE 'XY%' use indexes, but LIKE '%XY%' doesn't.
Regards
Richard