Does ndb.toplevel break transactions?

风流意气都作罢 提交于 2019-11-30 09:36:46

I discovered that the problems is that both create new contexts. transactional creates a context and ensures that all writes that happen inside of it are non-conflicting. toplevel creates a context and ensures that all futures that are created inside of it are resolved.

As a result, toplevel is clobbering transaction's context. The two just can't be combined in their current implementation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!