logoalt Hacker News

phendrenad2yesterday at 6:57 PM1 replyview on HN

You probably don't want integer primary keys, and you probably don't want UUID primary keys. You probably want something in-between, depending on your use case. UUID is one extreme on this spectrum, which tries to solve all of the problems, including ones you might not have.


Replies

pil0uyesterday at 7:14 PM

What's in-between? I posted the article because I'm in the middle of that choice and wanted to generate discussion/contradiction.

So far, people have talked a lot about UUIDs, so I'm genuinely curious about what's in-between.

show 1 reply