mislav committed changeset [388]
Revision 388,
committed by Chris Wanstrath
· September 26th, 2007 @ 06:08 PM
Will Paginate lazy counting! Counting is done after the SELECT, but skipped entirely if Finder figures out that this is the last page. We are talking about saving us trips to the db here. Thanks, Elijah Miller. [#92 state:resolved]
10 changed files
-
U
will_paginate/lib/will_paginate/collection.rb -
U
will_paginate/lib/will_paginate/core_ext.rb -
U
will_paginate/lib/will_paginate/finder.rb -
U
will_paginate/test/finder_test.rb -
D
will_paginate/test/fixtures/companies.yml -
D
will_paginate/test/fixtures/company.rb -
U
will_paginate/test/fixtures/schema.sql -
U
will_paginate/test/fixtures/topic.rb -
U
will_paginate/test/helper.rb -
U
will_paginate/test/pagination_test.rb