If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > update, import, load

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-10, 17:09
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
update, import, load

I am sorry if I am asking a stupid question, but my developers keep bugging me...

we are doing data updates in tables. and sometimes it’s 2 records, sometimes - 5000, and sometimes - 900,000. is there any kind of “best practice” at what number of records we should go from using option 1 to option 2 and than to option 3:
1. update set (few records at the same time);
2. import with insert_update (most or all records will be updated);
3. export, update values in export file, load replace;

Thanks in advance
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #2 (permalink)  
Old 02-01-10, 09:18
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Option 3 sounds like an oldfashioned mainframe solution to me. This involves a lot of hassle to be sure that no other process is using that table. When more than 80% of the data has to be changed you could consider it, but if you can find the (processing) time to do the job without the hassle, do it the normal SQL way to be sure and "rollforwardable"..... (you like the new word I just invented?)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On