Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nextaccountic
· 1mo ago · 0 comments
It makes more sense to have two columns yes, one autoincrement for the primary key, and another uuidv4. Because uuids are too large and makes indexes slower
Comments
[–]
spixy
1mo ago
So when public APIs use uuidv4 to fetch item, those uuidv4 still need to be indexed...
[–]
mahboi
1mo ago
Right, but that's one lookup vs the many joins you're probably doing internally