contention

Contention problems in Google App Engine

家住魔仙堡 提交于 2019-11-26 09:58:29
问题 I\'m having contention problems in Google App Engine, and try to understand what\'s going on. I have a request handler annotated with: @ndb.transactional(xg=True, retries=5) ..and in that code I fetch some stuff, update some others etc. But sometimes an error like this one comes in the log during a request: 16:06:20.930 suspended generator _get_tasklet(context.py:329) raised TransactionFailedError(too much contention on these datastore entities. please try again. entity group key: app: \"s~my