客观化分页 [英] Objectify paging

查看:98
本文介绍了客观化分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一些帖子:
您可以找到一份关于在Google App Engine Objectify世界中实现良好分页的好教程或文档吗? HREF = http://groups.google.com/group/objectify-appengine/browse_thread/thread/b640b5d377b620b4> http://groups.google.com/group/objectify-appengine/browse_thread/thread/b640b5d377b620b4



但似乎没有任何帮助。是否有某种限制查询?

解决方案

您链接的帖子描述了正确的分页方式:使用游标。您可以使用偏移和限制来获取,但效率不高,应该避免。


Can you find a good tutorial or documentation about achieving a good pagination in a Google App Engine Objectify world?

I found some posts: http://groups.google.com/group/objectify-appengine/browse_thread/thread/b640b5d377b620b4

But nothing seems to help me. Is there some sort of LIMIT query?

解决方案

The post you linked to describes the correct way to do pagination: Using cursors. You can fetch using offsets and limits, but it's inefficient and should be avoided.

这篇关于客观化分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆