Hi Tom, Have you looked into cursors?
http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Query_Cursors On Sat, Aug 28, 2010 at 9:49 AM, tomkarren <[email protected]> wrote: > I read that pagination has an unpublished limit of 2000. Anyone know > it that's still true? Seems to be the case in my testing.. This > breaks my app? Can anyone help? > > On Aug 25, 10:09 pm, tomkarren <[email protected]> wrote: > > Hi, > > > > I'm attempting to iterate through a large number of entities (3000) > > using limits and offsets. On the first pass my limit is 500 and my > > offset is 0. I get 500 results. > > > > On the second pass with limit 500 and offset 500, I get 500 results. > > This approach seems to work ok until I get to limit 500 with offset > > 1500. On that pass, I get 1000 results, which seems pretty strange > > given I set a limit of 500. > > > > Code Snippet: > > DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); > > Iterable<Entity> results = (Iterable<Entity>) > > ds.prepare(query).asIterable(withLimit(500).offset(1500)); > > for (Entity result : results){ > > .... > > > > Any input would be appreciated. > > > > Thanks, > > > > -Tom > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
