Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
magicalhippo
7 months ago
|
parent
|
context
|
favorite
| on:
DELETEs Are Difficult
Learned that lesson a bit too late for that.
But yea, these days I never use natural keys.
marcosdumay
7 months ago
[–]
I really hate that the educational literature says it's an option. Yet everybody knows it's something you should never do, no exceptions.
mycall
7 months ago
|
parent
[–]
Maintaining old databases is one reason to use natural keys. There are a lot of them in the wild.
marcosdumay
7 months ago
|
root
|
parent
[–]
It's not a valid reason for adding more of them. It's only a reason to be stuck inheriting some.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But yea, these days I never use natural keys.