Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View performance much greater than SQL equivalent
Message
From
04/03/2008 17:03:11
Walter Meester
HoogkarspelNetherlands
 
 
To
04/03/2008 15:04:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01298569
Message ID:
01298692
Views:
15
>Bit confused here. Is the SQL faster or the view?
> The QUERY taxes the network an order of magnitude less than the View.
>
>Anyways, using a view also reads from the database. If the database is on the network, it is expected that reading from the view is slower. But there is more to it. If you specify a database(!) prefix in the from clause it is reading more from the network than when reading from an already open alias.
>
> I removed the SN! but it didn't seem to make any difference.

Make the DBC readonly and it should be the same. The view is reading from the DBC, causing the extra network trafic. By making it readonly the DBC can be cached.
Previous
Reply
Map
View

Click here to load this message in the networking platform