Insert then Update & Update then Inser
Posted: Mon Sep 24, 2007 1:13 pm
Hello All,
In the ORACLE OCI EE stage there are two Upsert Order modes: Insert then Update & Update then Insert.
My question is, how do we improve the performance of a Parallel job for which the Upsert order is set to "Insert then Update" on a given day when there are more or all updates as compared to inserts. Reason for choosing Insert then Update in the first place is that there are more records to be inserted on any given day
as compared to Updates.
My understanding is the stage always tries to insert, if that fails then do an update in an Insert then Update mode and vice versa for Update then Insert. The example below illustrates when Insert then Update gives us
poor performance.
Example:
Day #_of_Recs Inserts Updates Performance
1 10000 10000 0 Best
2 10000 8000 2000 Average
3 10000 2000 8000 Poor
Also would like to get some info on as to how DataStage PX handles Insert then Updates or vice versa i.e how the Oracle EE OCI stage interacts with the Database when it comes to inserting/updating recods. We have also noticed that the performance of a server job in a similar situation is better than a parallel job.
Thanks a lot in advance......
In the ORACLE OCI EE stage there are two Upsert Order modes: Insert then Update & Update then Insert.
My question is, how do we improve the performance of a Parallel job for which the Upsert order is set to "Insert then Update" on a given day when there are more or all updates as compared to inserts. Reason for choosing Insert then Update in the first place is that there are more records to be inserted on any given day
as compared to Updates.
My understanding is the stage always tries to insert, if that fails then do an update in an Insert then Update mode and vice versa for Update then Insert. The example below illustrates when Insert then Update gives us
poor performance.
Example:
Day #_of_Recs Inserts Updates Performance
1 10000 10000 0 Best
2 10000 8000 2000 Average
3 10000 2000 8000 Poor
Also would like to get some info on as to how DataStage PX handles Insert then Updates or vice versa i.e how the Oracle EE OCI stage interacts with the Database when it comes to inserting/updating recods. We have also noticed that the performance of a server job in a similar situation is better than a parallel job.
Thanks a lot in advance......