Message
From
16/12/2006 16:01:11
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
16/12/2006 15:55:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01178287
Message ID:
01178297
Views:
30
>>Caching will happen because the second set of joins and the where clause is the same as the first. SQL Server does the same thing via "Simple Parameterization"
>
>We're not talking about doing the SQL two times in a row. It is slow the first time if I don't have the inclusion of additional fields. So, this shows there is something going on somewhere. If I only include the field such as Member.Numero,Item.Numero, it is slow. But, if I include the field such as Member.Numero,Item.Numero,Status.*, then the result is immediate. So, I cannot understand what you mean by Caching. Maybe I missed something?

You did run the query twice, the first time with one set of fields and the second time with a different set of fields. Unless you restart your machine, you're using cached data for the second query.
Previous
Next
Reply
Map
View