开发者

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

开发者 https://www.devze.com 2022-12-30 23:03 出处:网络
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-p开发者_Python百科ractice for paging both forward and bac

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-p开发者_Python百科ractice for paging both forward and backward with cursors.

Thanks!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号