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.
精彩评论