On 28 Sep, 10:15, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:
>
> You could do this much more efficiently by loading the list of keys into a
> list (say, from a text file), and deleting them in batches, something like
> this:
>
> f = iter(open("todelete.txt", "r"))
> for batch in zip(*([f]*20)):
>   db.delete(batch)
>
> Note there's also no need to fetch the entity before deleting it.
>
> -Nick Johnson

Great, thanks for your help Nick.

G.
--~--~---------~--~----~------------~-------~--~----~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to