processwire-requests icon indicating copy to clipboard operation
processwire-requests copied to clipboard

Support Cursor-based pagination

Open jlahijani opened this issue 1 year ago • 3 comments

It's something I just learned about and I thought it would be interesting if ProcessWire supported it. It's useful for sites with a large amount of records. Some articles:

https://laravel.com/docs/10.x/pagination#cursor-pagination https://shopify.engineering/pagination-relative-cursors https://slack.engineering/evolving-api-pagination-at-slack/ https://www.sitepoint.com/paginating-real-time-data-cursor-based-pagination/

jlahijani avatar Nov 18 '23 06:11 jlahijani

Kind of a silly example, but the blog of DHH (creator of Rails framework) uses it as well probably because the blog is built in Rails which supports cursor pagination. If you scroll down and click "See more posts", you will see the URL suggests its using cursor based pagination.

https://world.hey.com/dhh

jlahijani avatar Jan 18 '24 16:01 jlahijani

@jlahijani You should be able to do this with selectors already? Or do you mean having a module that contains it or renders it, etc. ?

ryancramerdesign avatar Feb 02 '24 16:02 ryancramerdesign

@ryancramerdesign I mean having cursor-based pagination capability that feels as easy to use as the classic pagination capability.

jlahijani avatar Feb 02 '24 17:02 jlahijani