Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore'ing substrings
Message
From
21/01/2003 17:10:33
Mike Yearwood
Toronto, Ontario, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00743958
Message ID:
00744017
Views:
19
Hi Mark

There was a tip in a FoxPro Advisor magazine a while ago. It was called Not-so-obvious optimization October 2001. I write the expression from the table on the left and the variable(s) on the right. The left is used for Rushmore optimization. The right specifies tells Rushmore what to find. The tip shows that functions on the right side are applied to every record. So, its faster to evaluate the right side's expression before running the query.

>What's the difference between putting the upper() in the select and putting it into a variable first... just curious?
>
>Thank you for your other suggestion, we'll have to try that too.
>
>--------------
>
>As Hilmar pointed out, there's little you can do to speed up this kind of searching. You'll find this....
>
>lcSearch = UPPER(ALLTRIM(variable))
>SELECT * FROM sometable WHERE UPPER(somefield) = lcSearch
>
>gives better performance for the other where clause you wrote.
>
>Use Rushmore to reduce the produce a subset of records and perform the substring searches on the subset.
Previous
Reply
Map
View

Click here to load this message in the networking platform