tempy
tempy

Reputation: 1557

How to implement paging in both directions in GAE-J with cursors

I'm trying to implement paging in my GAE-J/GWT app. Paging forward with a cursor is straight-forward, but I'm wondering if there's some best-practice for paging both forward and backward with cursors.

Thanks!

Upvotes: 1

Views: 340

Answers (1)

Ilian Iliev
Ilian Iliev

Reputation: 3236

If you are talking about datastore cursor you can`t; The only way to do it is to store previous cursors in memcache with page numbers (cursros are just strings) and when you go back to extract the cursor/result for the page from the cache.

Upvotes: 1

Related Questions