question about join/lookup

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
wuruima
Participant
Posts: 65
Joined: Mon Nov 04, 2013 10:15 pm

question about join/lookup

Post by wuruima »

Hi dear friend,

would you please help to clarify the usage of join stage and lookup stage ?
I have below questions.
1, in join stage, is it necessary to sort both input links ? what will happen if we don't sort but just patition the input data by the keys?

2, sometimes the join stage and lookup stage can do the same time, in what condition should i use join stage, and when should i use lookup?

Thanks! :oops:
wuruimao
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Join stage needs sorted inputs for efficiency. With sorted inputs it only needs to deal with a single key value at a time. Depending on your settings, if you don't sort your data DataStage will insert a tsort operator so that they are sorted (you can see this in the score).

Lookup can't do right outer join or full outer join. Lookup can't work with a reference data set that won't fit in memory.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
wuruima
Participant
Posts: 65
Joined: Mon Nov 04, 2013 10:15 pm

Post by wuruima »

ray.wurlod wrote:Join stage needs sorted inputs for efficiency. With sorted inputs it only needs to deal with a single key value at a time. Depending on your settings, if you don't sort your data DataStage will inse ...
Thanks for your reply but "inse" means ???
wuruimao
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It means you cannot see the complete message because you are not a Premium user.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply