Dimension Negative surrogate ID created in table

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

Post Reply
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Dimension Negative surrogate ID created in table

Post by chulett »

devesh_ssingh wrote:please share any long term solution which would not exhuast in span of 10 years.
Not sure how anyone can guarantee a "10 year solution" for you, not knowing your data volumes. Regardless, make sure your ids are "big enough" to hold whatever they need to hold.

However, is there really anything wrong with a negative number for a surrogate? (note I said "negative" not "-ve", an abbreviation that irks the crap out of me) Unless you've assigned special significance to them, then I don't see an issue per se. However, you could "fix" this and leave the existing values in place or "correct" them if they bother you, that's just math and some constraint games.
-craig

"You can never have too many knives" -- Logan Nine Fingers
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Post by devesh_ssingh »

Thanks craig for Quick response...

no issuew with negative id but they will again exhausted with in 2-3 years.
our data volume is 12 billion...

need to find out long term solution :)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Dimension Negative surrogate ID created in table

Post by chulett »

devesh_ssingh wrote:change of data type from Integer to Bigint
Would that not do it for you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Post by devesh_ssingh »

That would do but , for all the -ve values needs to correct..
since restoring last positive value in .sk file and will correct all -ve id with new one.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's nothing wrong with negative values for surrogate key.

All a surrogate key has to provide is uniqueness.

If you're really bothered by this, use unsigned integers when viewing them. The binary storage is exactly the same.
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