Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is more efficient of the two
Message
 
À
12/07/2006 13:10:40
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
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 8 SP1
Database:
MS SQL Server
Divers
Thread ID:
01135592
Message ID:
01135927
Vues:
13
Hi Dragan

>Generally, the most expensive thing in SPT is the overhead of a single SqlExec (if we discount for bad database design, or other human factor issues). If your code needs to perform a lot of work on multiple records, get those records at once, and trust the Fox to do most of what you do (in case 1) in memory. The second case would require one trip to server for each record, which would create much more network traffic.

Thanks for your inputs. I have generally opted for the second option. Though given a bit of time I also want to try out the temp tables and SQLPREPARE() options.

Thanks.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform