I have three models. Call them A, B, and C. Model A has _post_put_hook that creates 100 model B’s. Model B has _post_put_hook that creates 100 model C’s.
Is it better to have the _post_put_hook triggered a deferred function (aka, task queue) or a put_async? All the hooks have a small amount of computation, but very very limited. I think deferred is safer, but I’d rather do it the “right way.”
I’m using Google App Engine’s new ndb library.
Note: The reason I’m doing all the _post_put_hooks is that I’m purposefully duplicating and repackaging information.
Each write to
Ais going to result in 10,000 entities being written. Yes, it’s safe to say that you should do this in a task (or if possible, avoid doing it in the first place).