How to refresh a lookup table after every iteration

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
msuri
Participant
Posts: 4
Joined: Sun Jul 23, 2006 10:03 pm

How to refresh a lookup table after every iteration

Post by msuri »

Hello all,

In a Datastage Enterprise Edition job, is it possible to refresh a lookup to reflect inserts done to the lookup table within the same job?
My job writes records to a table X, It is capable of insert new records, insert new versions and update old versions of existing records. The lookup to identify existing records and new versions is done to the same table X. The problem arises because the input data may have several versions of the same record inside.

Thank you in advance
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No, the only way to do this is to use sparse lookups and no buffering of output.
Vardhini
Participant
Posts: 1
Joined: Wed Mar 05, 2008 6:38 am
Location: India

Post by Vardhini »

ArndW wrote:No, the only way to do this is to use sparse lookups and no buffering of output. ...
Will the sparce lookup auto commit records:?:
and also using a sparce lookups will decrease the performance of the job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Vardhini wrote:Will the sparce lookup auto commit records:?:
That's entirely a matter of how you design, and (I believe) what Arnd meant by "no buffering of output". YOU control the number of rows per transaction - for auto-commit set it to 1.
Vardhini also wrote:and also using a sparce lookups will decrease the performance of the job.
That depends. Define "performance" in an ETL context.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
yserrano
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 31, 2008 1:23 pm
Location: Santo Domingo

Post by yserrano »

Main post has some similiraty with this one. :shock:
Post Reply