Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL LIKE and Rushmore optimization
Message
From
20/01/2006 11:07:58
 
 
To
20/01/2006 10:47:55
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:
01088918
Views:
21
By the way... I'd like to ask.. what do you think

INDEX ON Upper(Description) TAG Test1
INDEX ON "1"+UPPER(Description) TAG Test2


SELECT * FROM table WHERE "1"+UPPER(Description) LIKE "1%X%C" INTO ARRAY laResult
Take 30 seconds...
SELECT * FROM Table WHERE UPPER(Description) LIKE "%X%C" INTO ARRAY laResult
Take 27 seconds...
SELECT * FROM Table WHERE UPPER(Description) LIKE "X%C" INTO ARRAY laResult
Take 4 second....!!!

In 3-rd case - it same "Partial" but speed of query realy nice... is there some trick to avoid lead "%"
in expression... or no chances?

Thanks again
Denis



>>Fabio,
>>Thank you.
>>Its realy displays FULL in VFP9.. but in VFP8S1 its always "partial" or "none"..
>>In my case I need to use "X%C" expression.. and here no chance to get it optimized.. but in any case - your message was very usefull for me.
>>
>ignore the
>>Denis.
>>
>
>The messages of SYS(3054) they are indicative only,
>there are many cases where 'partial' or 'none' it results completely optimized,
>or the SELECT is more rapids of a version 'full'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform