Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View performance much greater than SQL equivalent
Message
De
04/03/2008 17:03:11
Walter Meester
HoogkarspelPays-Bas
 
 
À
04/03/2008 15:04:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01298569
Message ID:
01298692
Vues:
16
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform