Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
The Problem with Using a UUID Primary Key in MySQL | Better HN
The Problem with Using a UUID Primary Key in MySQL
(opens in new tab)
(planetscale.com)
3 points
rareitem
1y ago
1 comments
Share
1 comments
default
newest
oldest
elmerfud
1y ago
One approach I didn't see discussed here is storing the UUID across 2 columns as 2 64 bit integers and forming a composite primary key. There's still tradeoffs with this as with all the methods but depending on use case it's viable way to do it.
j
/
k
navigate · click thread line to collapse