Re: [web2py] Re: delete on GAE

2012-11-01 Thread howesc
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

[web2py] Re: delete on GAE

2012-10-20 Thread Massimo Di Pierro
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 GAE

[web2py] Re: delete on GAE

2012-10-20 Thread howesc
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

[web2py] Re: delete on GAE

2012-10-20 Thread Massimo Di Pierro
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

[web2py] Re: delete on GAE

2012-10-20 Thread Massimo Di Pierro
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 to

Re: [web2py] Re: delete on GAE

2012-10-20 Thread Christian Foster Howes
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?