Surrogate Key - wrong generation

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

dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

"Is this hashed file the source for your surrogate key? If so this could be part of your issue. "

Yes. you are right. this file stores only the table name ans the column name and the surrogate key.
Thanks
Karthick
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then I would ensure you do not cache the lookup to this hashed file you are updating and see if that resolves your problem.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

this is what we have right now:

when writing to a file:

Allow stage write cache -- this is not checked
create file --- not checked

under Update Optiosn

Bothe are un checked.

When reading:

Pre-Load file to memory:
Enabled --> is chosen. so do you want me to disable this and try.
Thanks
Karthick
dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

I changed the setting for "Pre-Load file to memory" to disabled and now the performance is very slow (100 rows/sec). :?
Thanks
Karthick
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then try "Enabled, locked for update" and see if that gets any faster. You must do one or the other for this to work correctly. You *are* doing the update link in the same transformer as the reference lookup link, yes?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

Hi

I changed the "Pre-Load file to memory" to Disabled and the job didnt have any problem. It generated sequence in correct fashion.

I suspesct the file might be locked from getting updating and thats why it was reading the most recent value and generating the error. Or dure to less memory / cache the issue might have arrised. Now i recall that my co-worker was also running a job that had lots of look up stages and join and he consumed most of the resources. That could be the reason why my job was running slow.

Please share your comments.

Criag I would like to thank you personally for your support. You helped me to fix this issue. Thank you so much.
Thanks
Karthick
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No problem, that's why I do this. :wink:

I too would think this is memory / cache related, I would wager that your in memory footprint for this hashed file grew until it would no longer fit into memory and generated the informational message you saw. After that, perhaps your updates were only stored on disk at that point and what you were pulling from memory was stale as it was no longer being updated properly. [/guess]

Anyway, all better now.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not quite.

Moderator: please move to server forum

There are no hashed files in parallel jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:lol: You know the forum has very little relevance to what actually gets posted in it any more.

So... "not quite". Was that strictly a forum related response or does the Master have the real explanation of the issue waiting up his sleeve for a post-forum-move reveal?
-craig

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