why to use copy stage .....

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
ajay.prakash03
Participant
Posts: 54
Joined: Mon May 28, 2007 12:41 am
Location: Chennai

why to use copy stage .....

Post by ajay.prakash03 »

can my job performance will improve with the use of copy stage if my source and target is same db(db2)? anyone can tell me how?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Copy stage, like its name, just makes copies of your input. It has nothing to do with your source and target. It will make copies regardless. Its performance is pretty good too.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
wenfei.chen
Participant
Posts: 15
Joined: Mon Mar 20, 2006 2:03 pm

Re: why to use copy stage .....

Post by wenfei.chen »

You can drop or change the order of columns. You can have extra copies for backup purpose.
What's the next?
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

But I don't think that adding a Copy stage between your DB Stages would improve Performance.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Minhajuddin wrote:But I don't think that adding a Copy stage between your DB Stages would improve Performance.
Right. The copy stage is intended to make copies of the input stream. If that is not the intension then un-necessarily do not stick in any stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A Copy stage that does nothing will be optimized out of the design when the score is composed.

While the Copy stage is not permitted to change or add data, it can do any or all of the following:
- re-order columns
- drop columns
- rename columns
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
wannabexpert
Participant
Posts: 13
Joined: Mon Sep 11, 2006 8:01 am

Post by wannabexpert »

If there is any enhancements in your job in the future this copy stage(placeholder) will be useful.i think it wont improve the performance of a job
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A Copy stage with no output link is an excellent placeholder while you are effecting incremental design. It will consume all the rows sent into it and have nowhere to transfer them, so will simply discard them.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply