Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Feature: total_entries limit

#194

In doing pagination, sometimes there are 30k pages because of the amount of entries we have. What I would like to do is to be able to specify an entry limit without having to do counts myself.

I am willing to develop this patch if we can come to an agreement on where this should take place. My initial thought is to mimick the per_page paramters. That is allow either @@total_entries_limit or a class method 'total_entries_limit' or as an option passed to paginate, :total_entries_limit.

Any thoughts?

-Trav

Reported by Travis · February 20th, 2008 @ 07:11 PM

State: open
Assigned to: Mislav Mislav

Activity

  1. Mislav
    Mislav
    • State changed from new to hold
    • Assigned user changed from Chris Wanstrath to Mislav

    Hey Travis,

    Could you start this discussion on the mailing list? I'm interested hearing about the problems of paginating tens of thousands of records, and what your ideas are to improve it. I'm sure other users might be interested as well.

    After we understand the problem, I can offer a solution.

    February 23rd, 2008 @ 01:46 PM

  2. Travis
    Travis

    Where can I find the mailing list?

    February 26th, 2008 @ 10:38 PM

  3. Mislav
  4. Travis
    Travis

    I looked all over the documentation and was not able to post a discussion anywhere. Should I create a text file and commit it to subversion? Ha! Just kidding, I'll start the discussion today.

    February 27th, 2008 @ 05:49 PM

  5. Mislav
    Mislav
    • Title changed from Feature Request: total_entries limit to Feature: total_entries limit
    • State changed from hold to open
    • Tag set to count, feature, will_paginate

    This is coming in the next major release. I still need to implement it

    October 7th, 2008 @ 09:27 PM

  6. Mislav
    Mislav
    • Milestone set to will_paginate v3.0 ("agnostic")
    • Tag changed from count, feature, will_paginate to count, feature, will_paginate

    October 8th, 2008 @ 11:07 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.