Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange query behavior
Message
From
05/02/1999 15:38:23
 
 
To
03/02/1999 19:57:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00183700
Message ID:
00184510
Views:
19
>>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).


Done! I've also run into that several times so I always do my benchmarking that way.
Previous
Reply
Map
View

Click here to load this message in the networking platform