performance issue--hash file?

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
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

performance issue--hash file?

Post by dnat »

Hi,

We recently made some code changes to an existing job.

The hash file had one key and we added one more key(so now it has combination key) now. After this code change we are having tremendous performance issue. it is processing at 3 rows/sec where we are dealing with 150 millions of records. Earlier it used to process at 600 rows/sec.

Can anyone tell me, whether this could be a problem(adding one more key to hash file)
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hashed files only have one key, when you define multiple keys the actaul key used is a concatenation of the fields, separated by a special character. You have not stated whether your problem is read speed or write speed. If the write speed has slowed down, then it is due to the number of bytes in the composite key. If your read speed has decreased, then it is probably because you are reading just one part of the composite key and the hashed file read now has to do the equivalent of a full table scan for the partial key. There are options available - one of which is declaring an index on the partial key column but that will slow down the write. Do you load this hashed file to memory?
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

Post by dnat »

Hi,

We are actually reading the hash file as reference and updating in the same file. after adding the key the performance has degraded extremely. Is there any way to overcome this situation
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a single column key, perhaps made up from the concatenation of the two fields plus a separator character.
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