My Job is running very slow

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
ravij
Premium Member
Premium Member
Posts: 170
Joined: Mon Oct 10, 2005 7:04 am
Location: India

My Job is running very slow

Post by ravij »

Hi,

I am running a job with stages
Src(Seqfile)-->LKP-->3 XFM stages-->LCC-->DB2

I selected Round Robin method in Link Partitioner and Sort/Merge method in Link Colletor and sort key is the Key column of Input columns. Update action is "Clear the table, then insert rows" and given DELETE Statement in Before SQL.

I am processing 1 lakh records.
why my is running very slow?

any assistance can be apprecieated.
thanks in advance.
Ravi
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Re: My Job is running very slow

Post by balajisr »

ravij wrote:Hi,

I am running a job with stages
Src(Seqfile)-->LKP-->3 XFM stages-->LCC-->DB2

I selected Round Robin method in Link Partitioner and Sort/Merge method in Link Colletor and sort key is the Key column of Input columns. Update action is "Clear the table, then insert rows" and given DELETE Statement in Before SQL.

I am processing 1 lakh records.
why my is running very slow?

any assistance can be apprecieated.
thanks in advance.
Is it necessary to use sort/merge collection method?. Why don't you try round robin collection method. Performance may improve. Sort merge collection method is used mostly when hash partition is made.
When you had deleted the table why do you need to clear it again. Just insert into the table.

--Balaji S.R
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Either replace your DB/2 write stage with a sequential file stage and measure your speed to determine if the DB/2 is the bottleneck. Also, what %age CPU do your 3 transform stage show? If they are at less than 30% on a long run with a moderately busy system then perhaps you don't need splitting into 3 processes. If the DB/2 is your bottleneck, dispense with the link collector and have all 3 transforms write out to the database in parallel.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Instead of Delete, why cant you just replace the whole content.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ravij
Premium Member
Premium Member
Posts: 170
Joined: Mon Oct 10, 2005 7:04 am
Location: India

My Job is running very slow

Post by ravij »

Hi Kumar,

thanks for reply.
Instead of Delete, why cant you just replace the whole content.

What does it mean?
I am giving the query in Before SQL. like this

DELETE FROM SCHEMA.TABLENAME

thanks in advance.
Ravi
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Re: My Job is running very slow

Post by kumar_s »

ravij wrote:Hi Kumar,

thanks for reply.
Instead of Delete, why cant you just replace the whole content.

What does it mean?
I am giving the query in Before SQL. like this

DELETE FROM SCHEMA.TABLENAME

thanks in advance.
As mentioned in other post, Delete uses the transaction log. Where as if you use replace it by pass the log files.
Another suggestion, 'Truncate' is far better that 'Delete' without condition.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you really need the Link Collector? DB2 will be quite happy with three inputs, so long as the sets of keys in each set are disjoint (so that there is no contention for locks). You may see substantial throughput gain as well.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ray.wurlod wrote:Do you really need the Link Collector? DB2 will be quite happy with three inputs, so long as the sets of keys in each set are disjoint (so that there is no contention for locks). You may see substantial throughput gain as well.
If you opt the option suggested by Ray, Replace may not be a wise idea.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

With disjoint sets of keys Replace ought not to be a problem.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ray.wurlod wrote:With disjoint sets of keys Replace ought not to be a problem.
Load - Replace option replace table totaly with the input data, irrespective of the presence/absence of the key in the input.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Ah, yes, I was thinking of the ODBC replace (delete before insert). :oops:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The first question to be answered is always: what else is running on the DS server?

Second is: what is running on the database server?

Third is: have you looked at your job processes cpu utilization?

Fourth is: are warning messages spewing into your job log?

Fifth is: what does your load SQL look like (pure inserts versus inserts w/updates versus wildcard updates etc)
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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you running on an MVS (Mine's Very Slow) system? :lol:
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