Exactly my thought... One cannot assume that the keys are in ascending order or Can we ?
On Thu, Sep 25, 2008 at 7:42 AM, Tony Arkles <[EMAIL PROTECTED]> wrote: > > Thomas, I think that solution will only work if the items are being > returned such that their keys will be in ascending order (which in the > general case seems like a very poor assumption). > > Did I miss something? > > On Sep 25, 1:14 am, Thomas Johansson <[EMAIL PROTECTED]> wrote: > > Entities always have a key, available as entity.key(). In addition to > > that, you can set a friendly key at construction only (can't be > > changed or set later), using key_name. If you do not however set a > > key_name, app engine will assign a numeric id, available as > > entity.key().id(). > > > > In other words, change your pagination to something like: items = > > Item.filter('key >', request.get('start')).fetch(1000), and pass the > > key of the last item as the start parameter. > > > > On Sep 25, 6:45 am, "Venkatesh Rangarajan" > > > > <[EMAIL PROTECTED]> wrote: > > > Folks, > > > > > I have created a "salary search" application ( > http://payrate.appspot.com) > > > > > I have uploaded around 500K records without an ID Field ( yeah,my Bad). > > > > > Now i am running into "BadRequestError: offset may not be above 1000" > error > > > when the results exceed 1000 and user is on the last page. I display > 100 > > > records per page. > > > > > Sample :http://payrate.appspot.com/?keyword=Engineer&page=800 > > > > > Any ideas on how I can update all the records with Index ? I know I > could do > > > that using "page refreshes", but looking for some elegant solution. > > > > > Rgds, > > > Venkatesh > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---