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

Primary keys in DBs should be natural keys in the first place. You use surrogate keys only to optimize things.

So the whole analogy now points in the exact opposite direction as stated.




What's an example of a natural key for a person, that never changes?




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

Search: