Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Help Needed to Speed Up the code
Message
De
30/07/2013 10:53:20
 
 
À
30/07/2013 10:49:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01579372
Message ID:
01579420
Vues:
57
>No sir, The Evaluation condition IF RECNO()%=0 is taking much more time as compared to my original code. I tested it 5 times on around 10000 records and fould that ech time it 30-35 seconds more. that may be perhaps of evaluating the IF condition each time.
>
>Than I removed both i.e Wait wind and IF condition , than too I found that there was hardly a 10 sec difference
>
>So i dont think that ,that issue is causing a huge delay

Surprised I did not see any 'thank you' in your reply - you might want to learn this http://www.catb.org/esr/faqs/smart-questions.html

Did you test the entire code or just the 3 last lines? The key point for optimization is the Seek() an INDEX on the foreign key of the child table. That'll be equally important with any method including SQL

good luck
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform