Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
tossandthrow
26d ago
0 comments
Share
I use the null uuid as primary key - never had any DB scaling issues.
0 comments
default
newest
oldest
petalmind
26d ago
Yeah, no NULL is ever equal to any other NULL, so they are basically unique.
Groxx
26d ago
You are also guaranteed to be able to retrieve your data, just query for '... is null'. No complicated logic needed!
j
/
k
navigate · click thread line to collapse