Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extremely slow SQL UPDATE
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Extremely slow SQL UPDATE
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01577191
Message ID:
01577191
Vues:
62
The following is extremely slow over one network (23 seconds), whereas at other sites takes less than 1 sec.
Patx is a DBF with 28,000 records (indexed on patuid)
TmpSync is a cursor with one record
UPDATE patx ;
FROM tmpSync ;
SET ;
	patx.ins = tmpSync.inscode + tmpSync.feecode, ;
	patx.pgroup = tmpSync.groupid ;
WHERE patx.patuid = tmpSync.patuid
I was under the impression that UPDATE SQL locks records, as needed, but that may not be so. SCAN / REPLACE is much faster in my tests.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform