Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sortable primarily keys matters very much for any DB clustering on them, e.g. MySQL/InnoDB and SQL Server.

It also matters, albeit to a much lesser extent, to others. Postgres stores tuples in a heap, but the PK is still a B+tree (ish), so an INSERT or UPDATE heavy workload will suffer somewhat.



Yeah, you're right. But for those, the typical PK recommendation of bigserial is already time-ordered and mostly packed.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: