Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace vs Update
Message
De
23/08/2000 18:01:33
 
 
À
23/08/2000 14:18:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00408377
Message ID:
00408545
Vues:
13
From the Hacker's Guide: "The help hints and our tests confirm that REPLACE is generally faster than UPDATE. In exclusive mode, the differences are small, but with shared tables, we see tremendous differences. The reason for the difference is that UPDATE uses record locking while REPLACE locks the entire table. There may be cases where you can't lock the table, so UPDATE's behavior can save your skin in spite of its performance consequences".
>Can somebody tell me the difference between using "replace" and "update"?
>
>I'm using regular VFP database (not MSSQL), I don't use views and usually, I open the tables with buffering mode 5.
>
>I usually use "replace" and never got problem but I've seen other programmers using "update" and I would like to understand the difference, advantages and pitfalls of both commands.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform