Have you found a solution? I have to paginate over 2.5m rows, and am
having the same issue.
The root of the issue is the SQL query runs a LIMIT offset, per_page, which
isn't efficient in large tables.
I'm considering writing in a flag to grab the ids of the rows, then
selecting the rows individually. However, I'm hoping somebody else has
solved pagination over large data sets. I can't be the first to run in
this issue.
On Wednesday, February 8, 2012 2:05:44 PM UTC-5, Selin wrote:
> Hi !! I'm trying to paginate a large data set (over 500.000).. How do
> I use the gem ?? Currently, is very slow, I know the reason but I
> don't now the solution, please help !! thanks :)