[google-appengine] Re: how to fast delete a complete datastore, please

2009-07-13 Thread Tony
There is no such option, but something that will speed up your deletes significantly is to do a keys_only query. The query you are currently using fetches all 300 entities into memory (including their properties, etc) - but you only need the key to delete the entity. Try something like "query = H

[google-appengine] Re: how to fast delete a complete datastore, please

2009-07-14 Thread Pashka R.
Hi, I guess if you will use bulk delete it would help: delete_me = [] for item in Model.all(keys_only=True): delete_me.append(item) db.delete(delete_me) //wbr Pashka R. On Mon, Jul 13, 2009 at 20:45, Tony wrote: > > There is no such option, but something that will speed up your deletes

[google-appengine] Re: how to fast delete a complete datastore, please

2009-07-14 Thread Nick Johnson (Google)
On Tue, Jul 14, 2009 at 10:06 AM, Pashka R. wrote: > > Hi, > > I guess if you will use bulk delete it would help: > > delete_me = [] > for item in Model.all(keys_only=True): >   delete_me.append(item) > db.delete(delete_me) This is not a good approach. Iterating over a Query fetches results in ba

[google-appengine] Re: how to fast delete a complete datastore, please

2009-07-14 Thread Pashka R.
Sorry for my previous nonsense reply... I need more coffee to wake up :) //wbr Pashka R. On Tue, Jul 14, 2009 at 12:12, Nick Johnson (Google) wrote: > > On Tue, Jul 14, 2009 at 10:06 AM, Pashka R. wrote: >> >> Hi, >> >> I guess if you will use bulk delete it would help: >> >> delete_me = [] >