update then insert

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
hargun
Participant
Posts: 188
Joined: Mon May 16, 2011 7:41 pm
Location: United States

update then insert

Post by hargun »

hi,

I have job from db2 to oracle and below is the process to inert the records

1.Push the records from db2 to oracle one time
2.push the delta(changes) daily

can I use insert then update in oracle connector or update then insert.Please advise.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Short answer? Yes. Use whichever has the most frequent action first. If mostly inserts chose "Insert then Update". Etc. Of course there's more to it than that but... yes.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply