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.

There was a problem

You must be a member of this account.

paginate on an association loads the entire association before doing a count

#90

It would appear the scoper area of wp_count! in finder.rb is causing the association to be completely loaded before doing any pagination on it. Line 122 of finder.rb calls respond_to? which in turn seems to be doing the loading of all objects.

Changeset 326 is the culprit.

Reported by Elijah Miller · August 24th, 2007 @ 11:52 AM

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to open

    That's my fault, I'll investigate.

    August 24th, 2007 @ 06:11 PM

  2. Chris Wanstrath
    Chris Wanstrath
    • State changed from open to resolved

    Mislav fixed this.

    September 28th, 2007 @ 09:30 PM

  3. Mislav
    Mislav
    • Tag set to will_paginate
    • Assigned user changed from Chris Wanstrath to Mislav
    • Milestone order changed from 0 to 0

    July 27th, 2011 @ 10:50 AM

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.