[google-appengine] Re: two paging problems

2009-01-28 Thread kang
I still do not know how to do paging...I can only get the next link, but I can not get the page 2,3,4,5,6,7,8 more link. Wish you can give me more hint. Thanks On Mon, Jan 26, 2009 at 7:32 AM, Marzia Niccolai ma...@google.com wrote: Hi, This may not work for your particular use case, but you

[google-appengine] Re: two paging problems

2009-01-28 Thread bowman.jos...@gmail.com
Well to answer your question, you'd need to regenerate your index, or build it in such a way as items can be removed from it. My approach to paging was this. I determined for my product I didn't need to offer more than 100 items in a set. When the system that needs paging is first hit, I pull

[google-appengine] Re: two paging problems

2009-01-26 Thread Marzia Niccolai
Hi, There are a couple of reliable ways to do paging with App Engine for arbitrarily sized data sets, both of which are discussed in this article: http://code.google.com/appengine/articles/paging.html And the corresponding sample code:

[google-appengine] Re: two paging problems

2009-01-26 Thread kang
Thanks for your reply. I've just read the article today and I will have a try. For search result, I do not know what query users give and how much result. So, I can not give a index for an instance. On Mon, Jan 26, 2009 at 6:54 AM, Marzia Niccolai ma...@google.com wrote: Hi, There are a

[google-appengine] Re: two paging problems

2009-01-26 Thread Marzia Niccolai
Hi, This may not work for your particular use case, but you can use an equality filter in conjunction with the key filter, so instead of something like: suggestions = Suggestion.all().filter('__key__ =', bookmark).order(__key__).fetch(PAGESIZE+1) you could do: suggestions =

[google-appengine] Re: two paging problems

2009-01-26 Thread ryan
__key__ filters and sort orders are definitely useful here, and marzia's approach will work if it fits your query. you can also use the technique described in http://groups.google.com/group/google-appengine/browse_thread/thread/ee5afbde20e13cde to add paging support to any query using __key__.