Jump to content

add years to pagination (tricky one, maybe impossible?)


joe_g
 Share

Recommended Posts

Hey experts,

I had this cool idea I would love to implement, but so far I didn't manage to do it with good enough performance. I've got some date fields on a page, and I'd like to have years indicate on the pagination pages, like so:

image.thumb.png.1105c4f4bd05cbd2800a42283345e414.png

What I tried is to read all the results, read all the years for each results, then slice them up in pages. This is way to slow, obviously.

Only thing i could think of is to make a nightly batch job that calculates the pagination, but it starts to get a bit messy and could easily be out of sync.

This is no life-and-death situation, it's just something I would like to do. If you have any ideas how to solve this I'm curious to hear it.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...