so it turns out that GAE itself fails when i pass an iterator over a large
list to gae.delete(). so i've tweaked the implementation to not call
count, but to still count the number of entries deleted and it seems to be
working.
suggested patch included
in http://code.google.com/p/web2py/issue
sure. i'll make a patch soon...
thanks for the input!
cfh
On 10/20/12 13:29 , Massimo Di Pierro wrote:
I meant to skip count.
On Saturday, 20 October 2012 15:28:56 UTC-5, Massimo Di Pierro wrote:
How about adding a gae only parameter to the gae adapter_args that tells
it to skip fetch?
On
I meant to skip count.
On Saturday, 20 October 2012 15:28:56 UTC-5, Massimo Di Pierro wrote:
>
> How about adding a gae only parameter to the gae adapter_args that tells
> it to skip fetch?
>
> On Saturday, 20 October 2012 11:25:51 UTC-5, howesc wrote:
>>
>> It appears that the most efficient way
How about adding a gae only parameter to the gae adapter_args that tells it
to skip fetch?
On Saturday, 20 October 2012 11:25:51 UTC-5, howesc wrote:
>
> It appears that the most efficient way to delete on app engine is to:
> - build a query object, like we are doing now
> - call run with keys_
It appears that the most efficient way to delete on app engine is to:
- build a query object, like we are doing now
- call run with keys_only=True
(https://developers.google.com/appengine/docs/python/datastore/queryclass#Query_run)
which returns an iterator.
- pass that iterator to the datast
Delete should return the number of deleted records. What is your proposal?
On Wednesday, 17 October 2012 17:30:22 UTC-5, howesc wrote:
>
> Hi all,
>
> I'm trying to clean up old expired sessions.but i waited a long time
> to get to this and now my GAE delete is just timing out. Reading the G
6 matches
Mail list logo