how to design with optimal performance...........

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

how to design with optimal performance...........

Post by ajay.prakash03 »

I have to design a job with optimal performance..scenario is..

create tabel NAME1 as slect from sal,eanme...from dept,emp whaere dept.deptno= emp.deptno.

create table NAME2 as select * from NAME1where.

again Create tabel NAME3 as select from tabel2...


like that i have to ran 5 times create table.statement . ane finally select query from last one and put into db2...


anyone let mw know..how i will designfrom performance point of view in server job. OS in unix....target is DB2 and source is ORACLE.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

First, define "performance" in an ETL context.

This may help you to get a better handle on what is meant by "optimal" in this context.

Note particularly that rows/second is an almost entirely meaningless metric, as I have posted on a number of occasions.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm curious why you 'need' to create 5 temp tables? I'm sure you could do all these in one SQL statement without necessarily creating scads of temp tables.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ajay.prakash03
Participant
Posts: 54
Joined: Mon May 28, 2007 12:41 am
Location: Chennai

i don't know much..it,s client demand

Post by ajay.prakash03 »

hi
thanks for quick reply.
it,s client requriment that i have create 5 tem table. finally i have to select the data from last one. the script i got they ghave used so many jons in each query. As i ahve to get data from oracle..finally target is DB2.

let me know how to proceed in server job..

ithink in this way==
oracle stage----->trans---->oracle--------->trans----------------->oracle..last table DB2..

please helpme
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Push back (intelligently and constructive) against illogical client requirements.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: i don't know much..it,s client demand

Post by chulett »

ajay.prakash03 wrote:ithink in this way==
oracle stage----->trans---->oracle--------->trans----------------->oracle..last table DB2.
Yes, that's what the job would need to look like. Have you tried to create it yet? What part do you help with?
-craig

"You can never have too many knives" -- Logan Nine Fingers
shamshad
Premium Member
Premium Member
Posts: 147
Joined: Wed Aug 25, 2004 1:39 pm
Location: Detroit,MI

Post by shamshad »

(1) Please post all your 5 statements clearly, so that we can what exactly
is being done.
(2) How much data is being processed .i.el loaded to DB2 table?
(3) Any other transformation happening in the ETL flow, or just select
and dump data in DB2?

Replies to above will help to answer how to performance tune.

in General:-

If the columns from all your 5 "CREATE STATEMENT" are same, then why not use UNION / UNION ALL at source stage? This way, you will have just 1 SQL source and then no need to have 5 steps.
Post Reply