Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL LIKE and Rushmore optimization
Message
 
 
To
20/01/2006 07:34:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01088808
Message ID:
01088839
Views:
15
Hi Denis,

The problem is not the leading '%' but the fact that an index cannot be used in such case. Addin '1' at frond doesn't change that because all records start with it. You have to either build your own word table or use something like PHDbase.

>Thanks for response.
>Unfortunately AT() and $ is not optimizable...
>I try to create complex index expression like
>INDEX ON "1"+UPPER(Description) TAG Test
>and
>SELECT * FROM table WHERE "1"+UPPER(Description) Like "1%HP%PRINTER"
>to avoid not optimized lead "%"... all indexes in expression using for rushmore.. but report again "partial"..
>
>I thinking about PHD tool... for optimize query... the database is too big.. and speed of query is not acceptable now....
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform