关于分页的问题

2 views
Skip to first unread message

sagasw

unread,
Mar 25, 2009, 11:14:59 AM3/25/09
to iHere's Bouleuterion
不知道分页部分代码在那里,有没有考虑1000这个offset?
代码有些多,没有找到,望作者有空解答一下。

丛林

unread,
Mar 25, 2009, 10:52:12 PM3/25/09
to ihere-bou...@googlegroups.com
分页没有考虑这个问题  使用的django的generic views 本身支持分页
list_detail.object_list
http://djangobook.py3k.cn/chapter09/
下面这篇文章有参考价值:
http://code.google.com/intl/zh-CN/appengine/articles/paging.html


我马上会开个faq吧 呵呵


2009/3/25 sagasw <sag...@gmail.com>

sagasw

unread,
Mar 26, 2009, 1:36:11 AM3/26/09
to ihere-bou...@googlegroups.com
只是想学习一下,实现已经做了。
一般方案都是算count,然后算分页,问题就是offset可能大于1000。
我的分页方案是基于时间戳(修改基于plog),类似blogspot这样的,而不是page/N这种模式,也就避免了offset大于1000的问题。
我看到的所有gae上的blog程序都没用考虑这个问题,或许是因为数据量不够大的缘故吧。

2009/3/26 丛林 <lincong....@gmail.com>
Reply all
Reply to author
Forward
0 new messages