my job is taking 45 minits to load the data

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
pavankatra
Participant
Posts: 86
Joined: Wed Mar 03, 2010 3:09 am

my job is taking 45 minits to load the data

Post by pavankatra »

Hi All,
My job design is like this
dataset----->transformer------->odbc connector

my job is having 169000 records,i am using update then insert to load the data.It is taking 45 minits to load the data.I am using HASH partitioning in transformer and odbc stages.

can anyone please suggest me how to improve the performance.

thanks for your help in advance
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Do pre-Sorting in oracle itself before creating dataset and then try.
pavankatra
Participant
Posts: 86
Joined: Wed Mar 03, 2010 3:09 am

Post by pavankatra »

GJ_Stage wrote:Do pre-Sorting in oracle itself before creating dataset and then try.
Thanks for you reply

I have tried,still it is taking same time(45 minits) to load
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Might be below reason:
1. Check TABLE is getting lock while loading in case.
2. Please provide what kind of operation performing in Transformer stage.
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

Could you post the logic used inside the Transformer? Maybe that's what is slowing down the job.

Also it would be better to look into the number of columns and data types.
TONY
ETL Manager
Infotrellis India

"Do what you can, with what you have, from where you are and to the best of your abilities."
pavankatra
Participant
Posts: 86
Joined: Wed Mar 03, 2010 3:09 am

Post by pavankatra »

antonyraj.deva wrote:Could you post the logic used inside the Transformer? Maybe that's what is slowing down the job.

Also it would be better to look into the number of columns and data types.
thank you tony

In transformer i am harcoded some columns and used typeconversion function
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

Hard coding of columns is not known to be a performance breaker but type conversions if not done with care will have an impact.

Share the column metadata which is used before and after type conversion.
TONY
ETL Manager
Infotrellis India

"Do what you can, with what you have, from where you are and to the best of your abilities."
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Tony , You are correct. There is no other reason to make it slow.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

GJ_Stage wrote:Tony , You are correct. There is no other reason to make it slow.
Sure there is. Do they have an index over the update key fields in the target?
-craig

"You can never have too many knives" -- Logan Nine Fingers
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

What database type are you writing to?

Oracle? SQL srv? etc...

What has the job monitor shown you (during execution) ?
greggknight
Premium Member
Premium Member
Posts: 120
Joined: Thu Oct 28, 2004 4:24 pm

Post by greggknight »

I would also do inserts then update
less scanning.
"Don't let the bull between you and the fence"

Thanks
Gregg J Knight

"Never Never Never Quit"
Winston Churchill
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can prove the location of the bottleneck by writing to a Sequential File rather than Oracle. If that's no faster, the problem is in DataStage. If it is markedly faster, then the problem is in Oracle. Updating tables where the columns mentioned in the WHERE clause are not indexed is notoriously slow in any database.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pavankatra
Participant
Posts: 86
Joined: Wed Mar 03, 2010 3:09 am

Post by pavankatra »

Thanks ray,sorry for the late reply,i was on leave

i have done that,when i am loading into sequential file it is not taking time.
whenever i am trying to load the data into ORACLE i am getting this problem.


i think there may be some indexes on key columns,i will check and let you know guys.

thanks again
pavankatra
Participant
Posts: 86
Joined: Wed Mar 03, 2010 3:09 am

Post by pavankatra »

seems to be it is database issue,i will talk to my dba.

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

Post by chulett »

What kind of 'database issue'? Can you post what your actual resolution was?
-craig

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