2 comments

  • RobinL2 hours ago
    There&#x27;s also a pseudocolumn called rowid that&#x27;s worth knowing about for similar purposes but on duckdb tables:<p><a href="https:&#x2F;&#x2F;duckdb.org&#x2F;docs&#x2F;lts&#x2F;sql&#x2F;statements&#x2F;select#:~:text=Row%20IDs,based%20on%20the%20physical%20storage." rel="nofollow">https:&#x2F;&#x2F;duckdb.org&#x2F;docs&#x2F;lts&#x2F;sql&#x2F;statements&#x2F;select#:~:text=Ro...</a>
  • matharmin3 hours ago
    I&#x27;d assume it&#x27;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&#x27;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.
    • sroussey3 hours ago
      Even then, that does not work if new records are being inserted.