Comment

Comment by hn_throwaway_99

The whole point of ULIDs and newer things like UUIDv7 is precisely so you don't have to do that.

I would definitely just use a ULID or UUIDv7 as my sole primary DB key for new projects going forward. You get the benefit of ascending ordered primary keys, but the key is still globally unique so can be used as public keys.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton