[google-appengine] Re: Pagination using Query Cursors
Hi, I have not yet found the appropriate solution to this problem. The idea of iterating and caching the cursor values at every start of the page is one solution that I had also tried. It works, but I guess it is not the optimum way to do it. There should be a better way which has no performance issues. On Nov 12, 1:54 pm, dflorey daniel.flo...@gmail.com wrote: I am solving this problem by iterating through the result list asynchronously and caching the cursors pointing to each start of the page. Check out how it look here: http://ucm.floreyosft.net On Nov 12, 9:43 am, msmart michael.martini...@gmail.com wrote: Just out of curiousity. Did you solve your problem. If yes, how? Greetings! Michael Martinides On 27 Sep., 07:25, Tarun tarun.chha...@gmail.com wrote: Hi, I have been trying to performPaginationon the App Engine using Java, for a large data set of information. I read about it on many previous posts including the official documentation of Google App Engine : http://code.google.com/appengine/docs/java/datastore/queriesandindexe... Considering the constraints of fetching data from the datastore, nearly all the posts suggested the use of Cursors (a feature that was added in version 1.3.3.1 of the App Engine SDK ). Most of the code examples that I came across were performingpaginationby displaying the pages sequentially, but my requirement is to even allow displaying the result for any page, i.e a random access is required. In simple words, I wish to attain apaginationwhich is similar to Google's way of displaying search results. After going through the Java Docs of the SDK, I got to know that Cursors can only store the index value for the next set of entries. Is there any other way to satisfy my requirement? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Pagination using Query Cursors
Just out of curiousity. Did you solve your problem. If yes, how? Greetings! Michael Martinides On 27 Sep., 07:25, Tarun tarun.chha...@gmail.com wrote: Hi, I have been trying to performPaginationon the App Engine using Java, for a large data set of information. I read about it on many previous posts including the official documentation of Google App Engine : http://code.google.com/appengine/docs/java/datastore/queriesandindexe... Considering the constraints of fetching data from the datastore, nearly all the posts suggested the use of Cursors (a feature that was added in version 1.3.3.1 of the App Engine SDK ). Most of the code examples that I came across were performingpaginationby displaying the pages sequentially, but my requirement is to even allow displaying the result for any page, i.e a random access is required. In simple words, I wish to attain apaginationwhich is similar to Google's way of displaying search results. After going through the Java Docs of the SDK, I got to know that Cursors can only store the index value for the next set of entries. Is there any other way to satisfy my requirement? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Pagination using Query Cursors
I am solving this problem by iterating through the result list asynchronously and caching the cursors pointing to each start of the page. Check out how it look here: http://ucm.floreyosft.net On Nov 12, 9:43 am, msmart michael.martini...@gmail.com wrote: Just out of curiousity. Did you solve your problem. If yes, how? Greetings! Michael Martinides On 27 Sep., 07:25, Tarun tarun.chha...@gmail.com wrote: Hi, I have been trying to performPaginationon the App Engine using Java, for a large data set of information. I read about it on many previous posts including the official documentation of Google App Engine : http://code.google.com/appengine/docs/java/datastore/queriesandindexe... Considering the constraints of fetching data from the datastore, nearly all the posts suggested the use of Cursors (a feature that was added in version 1.3.3.1 of the App Engine SDK ). Most of the code examples that I came across were performingpaginationby displaying the pages sequentially, but my requirement is to even allow displaying the result for any page, i.e a random access is required. In simple words, I wish to attain apaginationwhich is similar to Google's way of displaying search results. After going through the Java Docs of the SDK, I got to know that Cursors can only store the index value for the next set of entries. Is there any other way to satisfy my requirement? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.