Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help with paginating large data sets
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Selin  
View profile  
 More options Feb 8 2012, 2:05 pm
From: Selin <sgab...@gmail.com>
Date: Wed, 8 Feb 2012 11:05:44 -0800 (PST)
Local: Wed, Feb 8 2012 2:05 pm
Subject: Help with paginating large data sets
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 :)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
trimbletodd  
View profile  
 More options Mar 28 2012, 4:10 pm
From: trimbletodd <toddmos...@gmail.com>
Date: Wed, 28 Mar 2012 13:10:52 -0700 (PDT)
Local: Wed, Mar 28 2012 4:10 pm
Subject: Re: Help with paginating large data sets

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »