Handling Surrogate key

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
naren6876
Participant
Posts: 233
Joined: Mon Feb 07, 2005 7:19 pm

Handling Surrogate key

Post by naren6876 »

Hi,

I have a requirement like .......

The target table is updated by multiple sources concurrently how do I make sure that they will have unique surrogate keys?

Any info would be appreciated.

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

Post by chulett »

By making sure they all "buy them at the same store" - be that a sequence object or by using the same sdk KeyMgt routine key value or whatnot.

Pull them from the same source and be prepared to handle concurrency - database sequences do that automatically and there is a 'Concurrent' version of the server routine that is available.
-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 »

*Topic Relocated - Content Editor*
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