{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20120607%2F1339070836\" title=\"Django 1.4\u3067\u8ffd\u52a0\u3055\u308c\u305fselect_for_update - \u30e1\u30e2\u7f6e\u304d\u5834\" 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","type":"rich","description":"Django 1.4\u304b\u3089django\u306eQuerySet\u3067select_for_update\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u7c21\u5358\u306b\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u52d5\u304b\u3057\u3066\u3044\u308b\u306e\u306f\u6628\u65e5select_related\u306e\u52d5\u304d\u3092\u898b\u308b\u306e\u306b\u4f5c\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u3067\u3059\u3002 sqlite\u3067\u306f\u8a66\u305b\u306a\u3044\u306e\u3067MySQL\u3092\u4f7f\u3046\u3088\u3046\u306bsettings.py\u3092\u5909\u66f4\u3057\u307e\u3057\u305f\u3002 python manage.py shell >>> book = Book.objects.select_for_update().get(pk=1) >>> sql\u306e\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b\u3068\u3053\u3093\u306aSQL\u304c\u767a\u884c\u3055\u308c\u3066\u3044\u3066\u3001\u78ba\u304b\u306bFOR UPDATE\u304c\u3064\u3044\u3066\u3044\u307e\u3059 SELECT `\u2026","version":"1.0","blog_url":"https://y0m0r.hateblo.jp/","image_url":null,"author_name":"yuheiomori0718","title":"Django 1.4\u3067\u8ffd\u52a0\u3055\u308c\u305fselect_for_update","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","width":"100%","height":"190","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","categories":["python","django"],"url":"https://y0m0r.hateblo.jp/entry/20120607/1339070836","published":"2012-06-07 21:07:16"}