Hi.
I need to send a lot of messages.

On GAE default framework it could be done by using cursosrs and
taskqueue(to overcome 15s limit):
....
if cursor != '':
     Q = db.Query(models.Partner).with_cursor(cursor)
else:
     Q = db.Query(models.Partner)
....
for partner in Q.fetch(10):
      mail.send_mail(....)

cursor = Q.cursor()
taskqueue.add(url='/mailworker/', params={'cursor':cursor})


Is it possible to prot this code to web2py`s DAL?

PS: the Partner table contains more than 50000 records.

Reply via email to