Teradata table - Reading and Writing in same job

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
rroy2
Participant
Posts: 21
Joined: Thu Jan 03, 2008 4:16 pm

Teradata table - Reading and Writing in same job

Post by rroy2 »

Hi,

I have a parallel job on 8.5 using Teradata connector stages where I have to read the batch table, and then update the same batch table. The flow is like

TD (Read batch table)------>Transformer --------> TD (update same Batch table)

Will there be any risk with such design? like table getting locked as its being read/updated in same job.

Is there a way we can avoid it without breaking it into 2 separate jobs

Thanks
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

I would break it into 2 separate jobs to be on the safe side, but I don't know anything about Teradata...
Choose a job you love, and you will never have to work a day in your life. - Confucius
jericho
Premium Member
Premium Member
Posts: 1
Joined: Tue Sep 18, 2007 2:18 pm

Re: Teradata table - Reading and Writing in same job

Post by jericho »

Try reading from a view to update/insert into the target table.
Post Reply