Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete-Insert OR Merge

Status
Not open for further replies.

himridul

Programmer
Jun 23, 2003
62
US
Hi,

A table has 500 millions of rows . Now I have to update around 0.4 million of rows in the table.

Can you tell me which process would be faster for this criterian :

1. Delete-Insert (Deleting the existing rows and Insert the updated rows)

2.Merge(Update else Insert)

Thanks ..
 
Himridul,

You are updating less than 1/2 of 1% of your table. These are relatively few updates. If you have indexes on your table, update/insert should go very quickly (...faster than delete/insert to accomplish an update.)

[santa]Mufasa
(aka Dave of Sandy, Utah, USA @ 08:41 (11Feb04) UTC (aka "GMT" and "Zulu"), 01:41 (11Feb04) Mountain Time)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top