top | item 40890341

(no title)

laserDinosaur | 1 year ago

>Call me old fashion but I really like integer autoincrement primary keys.

Just hope you never have to merge tables from two databases together.

discuss

order

hu3|1 year ago

This is exceptionally rare in most projects.

I know of only one person in my entire career that had to do this. And they managed it just fine despite working with auto-incrementing big ints.

Yet some folks advocate that all projects should pay an expensive insurance against this elusive event of two databases being merged.

laserDinosaur|1 year ago

>And they managed it just fine despite working with auto-incrementing big ints.

I wonder how. I've had to do several big merges in my career, and it was always a nightmare because of all the external systems which were already referencing and storing those pre-existing ints. Sure, merging the databases is easy if you don't mind regenerating all the Id's, but it's not usually that simple.

VeejayRampay|1 year ago

I swear, it really reads like "oh you like SOME TECHNOLOGY? we'll se how you like it when FARCICALLY RARE EVENT happens