Re: [google-appengine] Confuse about which is better solution to pagination using datastore on Python App Engine

2015-07-06 Thread Karl MacMillan
> On Jul 6, 2015, at 4:22 AM, Zeck Li wrote: > > > Here comes my question. What is the advantages of using cursor ? > Both two solutions all need to execute MyModel.gql(...)to get all data, and > the first solution still need to execute with_cursor(...)to retrieve items. > It makes me so co

[google-appengine] Confuse about which is better solution to pagination using datastore on Python App Engine

2015-07-06 Thread Zeck Li
Hi, I'm building a Webapp2 application, and trying to find the best solution for pagination. I found out that the prevalent solution is to use the cursor. For example: # In my opinion, I think that I need to get all cursors in the very first time # For example, there will be 2 cursors for 3 pag