something like this. code not tested and constants may be different. except 
800M ;)

from google.appengine.api.taskqueue import Queue, Task
from google.appengine.ext import ndb

QUEUE = Queue('default')


def backend_function():
    for j in xrange(800000000 / (100 * 20)):
        QUEUE.add([Task(url='/remove_100_records_handler') for i in 
range(20)])


def remove_100_records_handler():
    for i in range(100 / 20):
        ndb.delete_multi(YourDatastoreTable.query().fetch(20, 
keys_only=True))

WBR, Vitaly

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/388a8c45-19fc-4953-8a1e-d3c748ce5536%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to