Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specifying index
Message
From
27/03/1997 20:31:40
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
To
27/03/1997 19:53:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00025872
Message ID:
00025983
Views:
33
>>> use memb shared
>>> local array districts(3)
>>> scan
>>> if len(alltrim(zipcode)) = 10 then
>>> SELECT zipdist.cdist, zipdist.sdist, zipdist.hdist;
>>> FROM temptest!zipdist;
>>> INTO array districts;
>>> WHERE zipcode = memb.zipcode
>>[snip]
>>> So VFP is automatically using any indexes it needs? I wanted to be sure,
>>> because it runs SOOOO SLOOOOW. (930 records/min) .
>>the select should not run slow (assuming that you do have an index on zipcode for
>>zipdist)
>>maybe try to move memb.zipcode into a memory variable and use that
>>
>>Arnon
Try
SELECT zipdist.cdist, zipdist.sdist, zipdist.hdist;
FROM temptest!zipdist;
INTO array districts;
WHERE len(alltrim(zipcode))=10

Have an index on len(alltrim(zipcode)) tag ziplength
L.A.Long
ProgRes
lalong1@charter.net
Previous
Reply
Map
View

Click here to load this message in the networking platform