Groups
Groups
Sign in
Groups
Groups
Google App Engine
Conversations
Labels
About
Send feedback
Help
BadRequestError: offset may not be above 1000
19 views
Skip to first unread message
Aral Balkan
unread,
Sep 21, 2008, 10:15:00 AM
9/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
Hi,
I'm not sure when this changed but it seems that you cannot specify
offsets above 1,000 which kind of kills my backup app.
How are we supposed to iterate over large datasets?
Thanks,
Aral
Michael
unread,
Sep 21, 2008, 12:38:33 PM
9/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
I have the same problem. I can understand the result limit, but
offset ?
Simple solution is add a record ID .
Byron Saltysiak
unread,
Sep 21, 2008, 11:19:09 AM
9/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
Perhaps more targetted queries?
--
Sent from Gmail for mobile |
mobile.google.com
Byron
Alexander Kojevnikov
unread,
Sep 21, 2008, 8:45:03 PM
9/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
GAE uses client-side offsets, that means it first runs the query, then
iterates on the result to reach the offset you specified. This implies
that the offset cannot be greater than the result limit:
http://code.google.com/appengine/docs/datastore/creatinggettinganddeletingdata.html#Getting_Entities_Using_a_Query
(read the section called "Executing the Query and Accessing Results")
To iterate over a large dataset you need to have a unique field that
you will filter and order by. I suggest checking out this video:
http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine
Closer to the end Brett explains how to compose such a field.
Emmanuel Okyere
unread,
Sep 22, 2008, 5:29:27 AM
9/22/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
There are a few tips in the "Updating Existing Entities" section of this article too:
http://code.google.com/appengine/articles/update_schema.html
cheers,
Emmanuel.
---
RECURSION, n. See recursion
Reply all
Reply to author
Forward
0 new messages