by swyx · 5y ago · 0 comments
and why does the DB need to wait for some number of synchronous reads?
A starting read is needed to obtain the first cursor, hence the synchronous read.
i don't see anyone arguing for "next_page=abcdef1234". realistically it's more like "cursor=abcdef1234&limit=10". slightly less opaque. still your point about asking for multiple pages in parallel still stands.
i think i agree with mostly everyone here in that this is a fine tradeoff to make and so would favor cursors over offsets. (unclear how cursors relate to "keysets")