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.

Michael Ragalie's latest activity

Friday, December 12 2008
255 paginate very slow on large queries with :group was updated in will_paginate library
  • Michael Ragalie
    Michael Ragalie commented at 12:57 AM

    That worked like a charm. All I did was use

    
    Model.paginate :page => 1, :per_page => 10, :group => 'foo.id', :count => {:group => nil, :select => "DISTINCT fo...
Wednesday, December 10 2008
255 paginate very slow on large queries with :group was created in will_paginate library
  • Michael Ragalie
    Michael Ragalie created the ticket at 3:37 AM

    In finder.rb, wp_count() passes off to count() in order to figure out how many total results exist. When :group is specified, count() uses execute_grouped_calcu...