Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to speed up TableUpdate?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00388410
Message ID:
00389124
Vues:
19
Hi Charlie,

Not sure, I understood the whole your idea, some code sample would be helpful.
Currently we're using this syntax to update our tables
IF !TABLEUPDATE(2,.F.,ALIAS(),latuerror) etc.

I think, your solution would probably slow down the process, if I have 1,2 mln. records and made changes in 700000 records...

Anyway, I solved the problem by using the direct table changes instead of buffering, if the number of records greater than 10000. It's a little dangerous, but I don't have to make the users waiting 30-40 min... This job would be only run by single user, so it's not a multi-user problem...

Thanks again.

>If your using table buffering you could first isolate the changed records using getnextmodified(), then loop through them issuing the appropriate insert, update or delete SQL statement. For updates and deletes, key on the primary field. For inserts, check for the existance of a primary key.
>
>Charlie
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