Comment by mahboi

15 hours ago

Serial PK solves this too, better actually cause it's smaller

Why would I ever use a UUID PK if I had the option to use a serial one instead?

  • People do it, but seems like you get it. Every time I'm on a new team or job, they have UUID PKs in a single DB for no reason.

    • It's because it's opaque. Signing up and seeing a page like `/companies/366` unnecessarily leaks company data. Sometime it's a huge deal, sometimes not; not here to litigate that. But it's trivially avoidable.

      1 reply →