Cursor based pagination in Ruby on Rails
Channel: Rails From Zero
Date: 2022-04-23

Traditional offset based pagination is not well suited for large datasets. 

In this video we'll be looking at how cursor pagination can help, and implement it in a simple rails app.

-= Relevant links =-

Source code: https://github.com/rails-from-zero/2022-4-cursor-pagination

-= Chapters =-

0:00 Cursor pagination explanation
2:01 Basic implementation
4:22 Add link that loads more pages
5:40 How to figure out when you're on the last page
8:13 Displaying records in descending order

#ruby #rails #pagination