Lookup and change capture

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

Lookup and change capture

Post by dnat »

Hi
I have around 20 million rows in the input table which is a dimension table. Every day there can be around 200-300 new rows coming in and around 500 update records where the value for some of the column changes.

I am trying to see how i can use the lookup stage to capture these updates. If i just use the key column for lookup, then all the records except the new records(inserts) will be considered as updates and will flow through the output link. But i want to capture onlly those 500 records. Is there a way to do that.

I dont want to use change capture as we have had performance issues before..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to compare the looked up values to the incoming values and only pass along a 'change' record when something has actually changed. Don't really see how this will be any more performant than the CDC stage, however.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I would take advantage of timestamps to identify records that have changed and select only those.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply