logoalt Hacker News

matharmintoday at 3:55 PM1 replyview on HN

I'd assume it's common knowledge that you cannot paginate using OFFSET + LIMIT unless you use ORDER BY on an unique set of columns, no matter what database you're using. The only exception is when the database provides an explicit order guarantee without the ORDER BY, such as the case with `preserve_insertion_order = true` here.


Replies

srousseytoday at 4:07 PM

Even then, that does not work if new records are being inserted.