Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
tossandthrow
1mo ago
0 comments
Share
I use the null uuid as primary key - never had any DB scaling issues.
0 comments
default
newest
oldest
petalmind
1mo ago
Yeah, no NULL is ever equal to any other NULL, so they are basically unique.
Groxx
1mo 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