Commit Doubt

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
somu_june
Premium Member
Premium Member
Posts: 439
Joined: Wed Sep 14, 2005 9:28 am
Location: 36p,reading road

Commit Doubt

Post by somu_june »

Hi,

Iam having a requirement like this . Iam getting a message and it was parsed by xml and Iam inserting or updating or deleting the records in DB2 API stage . After entire XML message has been processed (i.e either inserted or updated or deleted ) then I need to commit the table. I read in some posts that I can use APT_RDBMS_COMMIT_ROWS and is there any option in stage DB2 API like transaction size.Can I use transaction size to commit the rows.If Iam wrong correct me


Thanks
Somaraju
somaraju
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The commit frequency is the transaction size in your stage.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

The commit frequency as mentioned by Andrw, would help you acheive the goal. The default I beleive is 1000 rows.
Most of the time you dont have rollback privelages, so decide before you commit anything.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply