Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace vs Update
Message
From
23/08/2000 18:01:33
 
 
To
23/08/2000 14:18:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00408377
Message ID:
00408545
Views:
12
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform