UNION ALL v/s FUNNEL Design Issue

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
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

UNION ALL v/s FUNNEL Design Issue

Post by balajisr »

I have three tables in DB2 with the same metadata. I need to combine these three tables into a single dataset (similar to unix cat command). Each table has approx 5 lakh records. I am running on 2 node configuration. My datastage version is 7.5.1A.

I can think of two options to combine 3 tables

1. Using UNION ALL in a single DB2 API stage to combine 3 tables.
or
2. Read 3 tables using 3 seperate DB2 API stages and funnel(Continuous funnel) it.

Which one of them would be better in terms of performance or is there any better alternative?
BalageBaju
Participant
Posts: 34
Joined: Fri Sep 22, 2006 10:59 pm
Location: India

Post by BalageBaju »

Balaji,

I think it is better to use your first option ie by using the UNION ALL command in DB2 API Stage for combining your tables.

Or otherwise if you are using Funnel stage then it is better to use the
'Sequence funnel' bcoz this property copies whole data from first table and loads into target and then second table and third table and so on...
Regards,
Balaji.
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Hi,

As per my past expereince, it is always better to utilise the Datastage rather than DataBase queries.

In funnel stage, you can use sequential funnel, if your requirement is that, other wise go for continous funnel by default. If you want your data in a sorted manner then go for Sort funnel.

If you don't have any requirement, go for Continous funnel by default.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Let the database do it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Thanks everyone for your replies.

I will let the database do it.

I could not mark the topic as resolved. I get a dialog box stating "failed: topic_id=?" etc.. when i click on Resolved button
chandra
Participant
Posts: 88
Joined: Sun Apr 02, 2006 6:50 pm
Location: India

Post by chandra »

I am out of touch with datastage ! can you please tell me what is this :-
sequential funnel, if your requirement is that, other wise go for continous funnel .

I know only funnel stage ! i never went into properties of it .
chandra ,
Hyd
thebird
Participant
Posts: 254
Joined: Thu Jan 06, 2005 12:11 am
Location: India
Contact:

Post by thebird »

chandra wrote: can you please tell me what is this :-
sequential funnel, if your requirement is that, other wise go for continous funnel .
Inside the Funnel, you have options for Continuous, Sequntial or Sort.

Continuous Funnel combines records as they arrive (i.e. no particular order); Sort Funnel combines the input records in the order defined by one or more key fields; Sequence copies all records from the first input data set to the output data set, then all the records from the second input data set, etc.
Post Reply