Hacker News new | past | comments | ask | show | jobs | submit login

But what's the point? You're complicating the data for no apparent gain. Only terrible RDBMSes which don't support multi-column keys require surrogate keys.



Because you can remove or change the uniqueness constraint without having to worry about foreign key relationships.


Eh, that's a feature of natural keys. If you try to fuck up your model your RDBMS will complain.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: