Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select Optimisation changes under VFP8?
Message
From
03/06/2003 11:44:10
 
 
To
03/06/2003 10:51:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00795674
Message ID:
00795716
Views:
18
Dominic,

Don't have VFP8 yet, so I can't confirm your observation. But I must ask the obvious question: are you absolutely sure you have an index on the field in question?

>
>
>SELECT * FROM table WHERE (field = 'abc' and SomeFunction(field))
>
>
>In the past, this query would test field='abc', and if not, not carry out the second test SomeFunction(field). This behaviour allows select commands to be optimised - check the quick things before checking the slow things.
>
>However, in VFP 8 every single expression in an SQL command appears to be evaluated. In the above example the SomeFunction(field) test is always carried out, regardless of whether field = 'abc'.
>
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform