by kijin · 11mo ago · 0 comments
Just the other day I delivered significant performance gains to a client by converting ~150 million UUIDv4 PKs to good old BIGINT. They were using a fairly recent version of MariaDB.
if they can live with MariaDB, OK, but I wouldn't choose that in the first place these days. Likely Postgres will also perform better in most scenarios.
Had the requirements been different, UUIDv7 would have worked well, too, because fragmentation is the biggest problem here.