Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add caching to Paginator #868

dchenbecker opened this Issue · 2 comments

4 participants


Original email:

While I was testing for #616 I ran into some really awful performance with pagination. The root cause is that H2 is taking a long time on queries, but the fact that the "count" and "page" members in Paginator are defs means that I was hitting the slow query multiple times for each render (8 times for "count" in my read of the code). I was wondering if we should go optionally cache the result of "page" in a RequestVar and base "count" on that to avoid hitting the database so many times. Yes, DBs have query caches and other things that should mitigate this, but still that's at least 8 round trips to the database for every page view.

Per DPP this should use a TransientRequestVar

@dchenbecker dchenbecker was assigned
@Shadowfiend Shadowfiend added this to the 3.0-M1 milestone
@farmdawgnation farmdawgnation modified the milestone: 3.0-M2, 3.0-M3
@Shadowfiend Shadowfiend modified the milestone: 3.0-M3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.