News for hackers. Stuff that matters.
Re:PostgreSQL and UUID as Primary Key by thiht on Saturday July 06, 2024 @10:51AM (#40890775)
That just seems overly cautious. I’d rather use UUIDv7 unless I have a reason not to. The convenience of sortable ids and increased index locality are very much worth the security issues associated with UUIDv7. Maybe I wouldn’t use UUIDv7 for tokens or stuff like that, but DB IDs seem pretty safe.

There are no comments on this comment yet.