Stored Procedure

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
mahi_mahi
Charter Member
Charter Member
Posts: 45
Joined: Mon Aug 01, 2005 10:02 am

Stored Procedure

Post by mahi_mahi »

Hi
I have a stored procedure which takes two arguments (agr1, Arg2)
and updates ColumnY with Agr1 in 10 tables where column X=arg2.

But both the input values are looked up in 2 diffrent tables(one lookup with 130 rows and the other with (832250) and then passed to the Stored Procedure.

There are total 2300 rows in the input file which are passed as arguements.

But my concern is it is taking too much time for the SP to finish.
Its taking more than 1 and half hour.

Is it because it's updating many tables at a time? I dont find any other reason as the job is very simple.

Can I improve the performance by changing the settings for the hashed files?

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

Re: Stored Procedure

Post by ray.wurlod »

mahi_mahi wrote:But my concern is it is taking too much time for the SP to finish. Its taking more than 1 and half hour.
The problem as you describe it is not in DataStage. You need to find ways to make the SP go faster. For example, can the updates be coded to operate in parallel rather than consecutively?
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