Performance Of theJOB

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
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Performance Of theJOB

Post by g_rkrish »

Hi,

I have a job in which i am doing a look up with 7-8 tables(ODBC stage) all the ODBC stage has a user defined query on its own.when try running this job it is taking hell lot time like an hour.but the source table has only 9000 records.I treid running the query in the database it take only 2 seconds.I tried setting the option of Repeated Read Increasing the array size in the target but it's of no use.

can any body help me out in tuning this job.

thanks,
RK
RK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Let's see... 9,000 source records... 2 seconds per query... 18,000 seconds... 300 minutes... 5 hours. :shock:

Why would you think a 7-8 table join lookup, accessed directly from a database with the ODBC stage, fired once for every row coming thru the job would ever be performant? Why not build a hashed file reference lookup from your two second query and use that?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kris_daredevil
Participant
Posts: 20
Joined: Mon Dec 05, 2005 8:07 pm
Contact:

Post by kris_daredevil »

if you can post the queries we can think of writing the query in diff way so that it can processed quickly, if possible please post the design also.
KRIS
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You can't compare an intra-instance join query with a pl/sql script using cursors. A DS job with 8 OCI lookups is equivalent to a streaming query with 8 cursor lookups. It's not parallel, doesn't cache repeated lookup values, and doesn't use any of the technologies DS Server has built in it for performance.

Tuning OCI reference queries won't help.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Try to replace the database stages into sequential file. If you see the diference, pre populate the databse into a hash file and do a lookup. May be the query hit by the stages to the table for each records in a sparse lookup may lead to slow down of you job.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Post by gateleys »

Hashed files, Hashed files, Hashed files and Hashed files. Use them and :) .

gateleys
Post Reply