Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore'ing substrings
Message
De
21/01/2003 17:10:33
Mike Yearwood
Toronto, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00743958
Message ID:
00744017
Vues:
23
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform