Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange query behavior
Message
From
03/02/1999 19:57:21
 
 
To
03/02/1999 19:16:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00183700
Message ID:
00183711
Views:
22
>If I select a subset of tableA using:
>
>select * from tableA where ...
>
>subsequent queries with the resulting table are 3-4 times faster than if the iniial subset is done using:
>
>select tableA.field1, tableA.field2 ...
>
>where the only difference is specifying specific fields vs. the *. I've also tried to place a nofilter on the fast query trying slow it down but it doesn't matter.
>
>Thanks,
>Rock Jensen

These tests are only meaningful if you shut down and restart VFP in between. when running unoptimized queries in VFP, VFP is often smart enough to create and use an index for itself (internally- ie it is not available or visible to you).
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform