I've found that creating and adding Task objects is quite expensive.
Consider the following...
for u in users:
task = Task(url='/emailqueue', params=
{'email':u.email,'body':body})
task.add('emailqueue')
Each user in this loop adds another 34.5 "cpu usages". It is by far
the most expensive operation I have. Right now, I don't think it will
scale much higher than 300 loop iterations before I start running into
timeouts.
Is there a better way to do this?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---