Rails 4 pagination with dynamic data

2019-06-17 03:25发布

Hi I have a rails4 app using pagination with the will_paginate gem.

Is there a way to handle pagination with objects created very often? If you call the first page and right after that the page 2, considering new objects are created in the meantime, it is going to mess data (the offset in the sql request is for example going to call almost the same data as the first page).

Is there a way to use pagination with rapidly changing dynamic data?

Thx for your suggestions

1条回答
劳资没心,怎么记你
2楼-- · 2019-06-17 04:00

Also, you could use the cursor gem

查看更多
登录 后发表回答