Hacker News new | ask | show | jobs
by tossandthrow 65 days ago
I use the null uuid as primary key - never had any DB scaling issues.
1 comments

Yeah, no NULL is ever equal to any other NULL, so they are basically unique.
You are also guaranteed to be able to retrieve your data, just query for '... is null'. No complicated logic needed!