kaminari--kaminari/lib
Campbell Allen 3796e3071c use the mongoid criteria length to cache the count of the collection per criteria
Fixes slow pagination into large mongoid collections as the criteria method didn't cache the count. ActionViewExtension#page_entries_info calls total_count 3 or 4 times (depending on execution path), slowing the view render.

http://mongoid.org/en/mongoid/docs/querying.html

Criteria#length, Also size. Get a count of persisted documents. After being called once for the criteria, will cache subsequent calls and not hit the database.
2013-12-05 13:09:40 +00:00
..
generators/kaminari Merge pull request #279 from eitoball/issue_271 2012-09-04 16:06:18 -07:00
kaminari use the mongoid criteria length to cache the count of the collection per criteria 2013-12-05 13:09:40 +00:00
kaminari.rb Revert "An Engine can include app/helpers, so let's move the helpers there" 2013-11-10 02:58:22 +09:00