Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
arghwhat
· 2y ago · 0 comments
You need to maintain a UNIQUE index and have two IDs, with the one set as primary key solely existing for on-disk ordering. It's a nasty hack.
Comments
[–]
wiredfool
2y ago
Postgres doesn't use the primary key for on disk ordering. MySQL does.
[–]
arghwhat
OP
2y ago
Ah, good point. The concern about on-disk ordering then only applies to other databases.
I suppose the index order may still be relevant for PostgreSQL?