#194 open
Travis

Feature: total_entries limit

Reported by Travis | February 20th, 2008 @ 07:11 PM | in will_paginate v3.0 ("agnostic")

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

Comments and changes to this ticket

  • Mislav

    Mislav February 23rd, 2008 @ 01:46 PM

    • 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.

  • Travis

    Travis February 26th, 2008 @ 10:38 PM

    Where can I find the mailing list?

  • Mislav
  • Travis

    Travis February 27th, 2008 @ 05:49 PM

    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.

  • Mislav

    Mislav October 7th, 2008 @ 09:27 PM

    • 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

  • Mislav

    Mislav October 8th, 2008 @ 11:07 PM

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Everyone's favorite Ruby library for pagination of practically anything!

People watching this ticket

Pages