TechHui

Hawaiʻi's Technology Community

How do you rails developers handle a paging through
thousands of records. The only paginator I know loads everything first, which
is too slow. In a J2EE application, it loads only what is displayed and retrieves
information only when the next or previous screen is clicked on.
Is there a good example online? I tried searching for will_paginator and I really didn't find
any good examples.

I don't know much about RoR, I'm just starting to dabble with RoR. I want to just do a simple
application that pages through thousand of records. I want to see the performance of RoR.

Thank you

Views: 47

Reply to This

Replies to This Discussion

Most people use the mislav-will_paginate plugin, or something along those lines.

It is an extension library that adds Paginated "Finders" on ActiveRecord objects that will automatically set the LIMIT and OFFSET parameters of the SQL query for you. If you have trouble, post back here, and I'm sure you'll get the help you need.
+1

Laurence A. Lee said:
Most people use the mislav-will_paginate plugin, or something along those lines.

It is an extension library that adds Paginated "Finders" on ActiveRecord objects that will automatically set the LIMIT and OFFSET parameters of the SQL query for you. If you have trouble, post back here, and I'm sure you'll get the help you need.

Reply to Discussion

RSS

Sponsors

web design, web development, localization

© 2024   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service