{"author_name":"tagomoris","blog_url":"https://tagomoris.hatenablog.com/","height":"190","url":"https://tagomoris.hatenablog.com/entry/20100422/1271951752","categories":["GAE","Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftagomoris.hatenablog.com%2Fentry%2F20100422%2F1271951752\" title=\"run_in_transaction\u5185\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5916\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3046\u65b9\u6cd5 - \u305f\u3054\u3082\u308a\u3059\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","blog_title":"\u305f\u3054\u3082\u308a\u3059\u30e1\u30e2","type":"rich","author_url":"https://blog.hatena.ne.jp/tagomoris/","description":"\u57fa\u672c\u7684\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8a71\u3092\u3059\u3053\u3057 GAE/Python\u3067\u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u884c\u3046\u306e\u306b db.run_in_transaction() \u3092\u4f7f\u3046\u3002\u5178\u578b\u7684\u306a\u4f7f\u3044\u304b\u305f\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3001\u6307\u5b9a\u3057\u305f\u95a2\u6570\u5185\u306e\u51e6\u7406\u304c\u307e\u308b\u3054\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u3068\u3057\u3066\u6271\u308f\u308c\u3001\u95a2\u6570\u304b\u3089\u51fa\u305f\u3068\u3053\u308d\u3067\u81ea\u52d5\u7684\u306bCommit\u3055\u308c\u308b\u3002 app1> x1 = X(key_name=\"x1\") app1> x1.put() datastore_types.Key.from_path(u'X', u'x1', _app=u'tagomoris-test') app1> def tx1(): ... x = X.get_by_key_na\u2026","title":"run_in_transaction\u5185\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5916\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3046\u65b9\u6cd5","version":"1.0","provider_name":"Hatena Blog","published":"2010-04-22 00:55:52","image_url":null}