Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Tostino
32 days ago
|
parent
|
context
|
favorite
| on:
5NF and Database Design
Not OP, but UUID v7 is what you want for most database workloads (other than something like Spanner)
tossandthrow
32 days ago
|
next
[–]
I use the null uuid as primary key - never had any DB scaling issues.
petalmind
32 days ago
|
parent
|
next
[–]
Yeah, no NULL is ever equal to any other NULL, so they are basically unique.
Groxx
32 days ago
|
root
|
parent
|
next
[–]
You are also guaranteed to be able to retrieve your data, just query for '... is null'. No complicated logic needed!
RedShift1
32 days ago
|
prev
[–]
Me still using bigints... Which haven't given me any problems. Wouldn't use it for client generated IDs but that is not what most applications require anyway.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: