Better HN
topnewbestaskshowjobs
Log inSign up

and0x000

1 karma · joined Dec 27, 2020 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

This.

It is also possible to create a "next page". You only need to take your current page's last id and use it in your query like "where id > current_last_element_id".

"first page" and "last page" are possible as well, simply do "where id > 0" for first and "where id <= (subselect max id)".

You may need to invert order here and there, but it is perfectly possible to use cursor base pagination in a GUI as long as you don't need to provide jumping to a specific page number.