python - Task Queue solution? -


i never used task queue before. i'm having problem trying report of of contacts datastore.

the code is:

allcontactos=db.gqlquery("select * contactsdb").run(batch_size=1000) contactn in allcontactos:     ... (here put fields in csv format) 

the problem i'm getting "500 server error" because of massive quantity of contacts.

my question is, aproach try solve task queue? can give me tip segregate query in many tasks?

regards!

you don't need split query in many tasks. can start 1 task. if task takes more 10 minutes, have use backend run task.

you either email file user when task finished, or create link in app/website download file when it's ready.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -