Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View performance much greater than SQL equivalent
Message
 
 
À
04/03/2008 14:17:18
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:
01298600
Vues:
23
>1.) I am monitering the network traffic when I open a view versus when I execute the underlying SQL. I find that the SQL SELECT taxes the network < 5% while opening the view records under 50%. I get the SQL statement from GENDBC so I am confident that's the view's code. The SELECT statement for the view is:
>SELECT ManifestHdr.dManifest, ManifestHdr.lOpen, ManifestHdr.iQty,;
>       COUNT(ManifestDtl.iPk) AS nScanned, ManifestHdr.iPk,
>             Manifesthdr.iFkSystems;
>	FROM  SN!ManifestHdr;
>		LEFT OUTER JOIN SN!ManifestGrp;
>        	ON  ManifestGrp.iFkManHdr = ManifestHdr.iPk;
>     	LEFT OUTER JOIN SN!ManifestDtl;
>        	ON  ManifestDtl.iFkManGrp = ManifestGrp.iPk;
>   	WHERE ManifestHdr.iFkSystems = ?vp_ManifestHdr_iFkSystems;
>	GROUP BY ManifestHdr.iPk;
>        ORDER BY ManifestHdr.dManifest
>Any ideas why this is?

Does this view reside within Database on the network or local DBC?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform