update vs. delete/insert

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

update vs. delete/insert

Post by sourceuno »

In a Texis database, which of the following methods would be faster?

1. Update records in 1st table with values from a 2nd table.

or

2. Delete records in the 1st table that exist in the 2nd table and then insert records from the 2nd table into the 1st.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

update vs. delete/insert

Post by John »

It really depends on how much of the record you are updating. If you would be updating pretty much the entire record then there is probably little difference in performance, as the total work that needs to be done is similar.

If the update is such that a lot of the indexes don't need to be updated then the update would be faster.
John Turnbull
Thunderstone Software
Post Reply