entities = MyModel.all().fetch(100)
while entities:
for entity in entities:
# Do something with entity
entities = MyModel.all().filter('__key__ >', entities[-1].key
()).fetch(100)
How come there is no ordering on __key__?
Dan Sanderson
unread,
Mar 16, 2009, 1:22:39 PM3/16/09
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
__key__ is the default ordering when no other filters or sort orders are requested. (In general, __key__ is the last ordering applied after all other orders.)