Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help Improving Select Speed
Message
De
07/12/2000 00:34:30
 
 
À
06/12/2000 20:48:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00450195
Message ID:
00450243
Vues:
34
>Hello,
>
>Is there a good way to search a character field for
>the occurance of a string?
>
>Currently I am using the following but it is very slow.
>I do have CDX indexes on both of the fields and tried
>with the order set and with no order.
>
>SearchMe = "TEST"
>Select item_no, item_desc from datafile;
> Where ATCC(SearchMe, upper(item_desc))<> 0;
> order by item_no nowait into cursor Find
>

ATCC() is not Rushmore optimizable, and an index is basically useless to improve the speed - the AT() family, LIKE(), OCCURS(), substring search (the $ operator or a LIKE clause in a SELECT) or something like VBScript.RegExp, so there's no way to resolve this without examining each potential record's field one record at a time.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform