Subject | Re: [firebird-support] (Partially) Comparing records |
---|---|
Author | Hannes Streicher |
Post date | 2006-03-12T15:24:16Z |
Hello Martijn Tonies,
--
Mit freundlichen GrĂ¼ssen
Hannes Streicher mailto:HStreicher@...
>> So I wonder if this is the right approach. I tried to put indexes onHow about an index on a computed field ?
>> some fields like AUTHOR and TITLE, but I think the use of UPPER in the
>> ON-clause prevents using these indexes.
> That is correct, UPPER removes the ability to use an index. In
> Firebird 2, you could use expression based indices, in Firebird
> 1.5 or lower, I suggest you add a shadow field, eg: TITLE_UPPER,
> which you populate by using a before insert/update trigger and
> use that to do your compare... Considering the number of books
> with the same title, this should be quick quicker.
--
Mit freundlichen GrĂ¼ssen
Hannes Streicher mailto:HStreicher@...