开发者

Transactions behaviour when request times out. [google app engine]

Google app engine has this useful little function in its db class,

db.run_in_transaction()

Which is suppos开发者_开发知识库e to garentee that your method will be rolled back if an exception is raised. "If the function raises an exception, the transaction is rolled back."

What happens if my request times out in the middle of its execution? Will it roll back?


Yes, the timeout raises an exception, so that also will mean a rollback.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜