4 ms·
The 30 second per page limit can be a pain too. If you need to manipulate (i.e. validate, import, export, etc.) more than a few hundred persistent objects, you
by jazzdev 17y ago
The 30 second per page limit can be a pain too. If you need to manipulate (i.e. validate, import, export, etc.) more than a few hundred persistent objects, you'll need to write your code to do it in chunks.
- eop 17y agoThat's what Task Queue is for: With the Task Queue API, applications can perform work outside of a user request but initiated by a user request. If an app needs to execute some background work, it may use the Task Queue API to organize that work into small, discrete units, called Tasks. The app then inserts these Tasks into one or more Queues. App Engine automatically detects new Tasks and executes them when system resources permit. Python: http://code.google.com/appengine/docs/python/taskqueue/overview.html http://code.google.com/appengine/docs/python/taskqueue/overv... Java: http://code.google.com/appengine/docs/java/taskqueue/overview.html http://code.google.com/appengine/docs/java/taskqueue/overvie...
- jazzdev 17y agoThe task queue has the same 30 second limit. Follow either of those links above and you'll find: the lifetime of a single task's execution is limited to 30 seconds You still have to do more coding to chunk the work.