Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching for a substring in a field - fastest way
Message
From
11/03/2017 01:32:59
 
 
To
09/03/2017 14:30:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01648880
Message ID:
01648927
Views:
45
>What is the fastest way to search through a file to find a substring within a field? I know you can
>
>set filter to 'xyz" $ yourfield
>go top
>
>or an SQL Select equivalent, but in a file where there are thousands of records, it takes a long time, specially on a network...
>
>Is there a quicker way?
>
>Many thanks!

You can not do much.
You can improve the reading, but penalizing the write.
In the sense of building one o more indexes that allows you to pre-select
the data and reduce the number of records where to do thorough research.
In the SQL Server full-text index is a partial solution, in the sense that you find the words, no generic substrings.
Previous
Reply
Map
View

Click here to load this message in the networking platform