Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tossandthrow
· 7mo ago · 0 comments
I use the null uuid as primary key - never had any DB scaling issues.
Comments
[–]
petalmind
7mo ago
Yeah, no NULL is ever equal to any other NULL, so they are basically unique.
[–]
Groxx
7mo ago
You are also guaranteed to be able to retrieve your data, just query for '... is null'. No complicated logic needed!