Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
clavalle
on April 7, 2016
|
parent
|
context
|
favorite
| on:
Design better databases
There is no way to enforce data integrity between related tables by virtue of the data model for one thing.
gcr
on April 7, 2016
|
next
[–]
I don't get this argument. Foreign key constraints are part of the schema.
What
should
the primary key be if not a UUID?
clavalle
on April 7, 2016
|
parent
|
next
[–]
A natural key. It is not always possible, but when it is it should be used.
cortesoft
on April 7, 2016
|
parent
|
prev
|
next
[–]
an integer id?
billybugmaster
on April 7, 2016
|
prev
|
next
[–]
isn't that what the fk are for? food_uuid for example. I concede I wouldn't call it uuid but I don't see a problem keeping the data straight.
jtmarmon
on April 7, 2016
|
prev
[–]
?? foreign keys?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: