{"id":1649,"date":"2018-04-29T01:00:22","date_gmt":"2018-04-28T16:00:22","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=1649"},"modified":"2021-10-10T20:07:31","modified_gmt":"2021-10-10T11:07:31","slug":"%e3%80%90%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%80%91%e3%83%ad%e3%83%83%e3%82%af%e3%81%ae%e5%9f%ba%e7%a4%8e%e7%9f%a5%e8%ad%98","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=1649","title":{"rendered":"\u3010\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3011\u30ed\u30c3\u30af\u306e\u57fa\u790e\u77e5\u8b58\uff08\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u7b49\u3082\uff09"},"content":{"rendered":"<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3001\u3054\u7d39\u4ecb\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u304c\u3001DBMS\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u7af6\u5408\u3055\u305b\u306a\u3044\u3088\u3046\u300d\u306b\u3059\u308b\u305f\u3081\u3001\u81ea\u52d5\u7684\u306b\u300c\u30ed\u30c3\u30af\u300d\u3092\u884c\u3044\u307e\u3059\u3002<\/strong><\/span><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"xaLxASobsY\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=1633\">\u3010\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3011\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u7af6\u5408\u3057\u306a\u3044\u305f\u3081\u306e\u4ed5\u7d44\u307f(\u30ed\u30c3\u30af\u3001\u5206\u96e2\u30ec\u30d9\u30eb\uff09<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=1633&#038;embed=true#?secret=xaLxASobsY\" data-secret=\"xaLxASobsY\" width=\"500\" height=\"282\" title=\"&#8220;\u3010\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3011\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u7af6\u5408\u3057\u306a\u3044\u305f\u3081\u306e\u4ed5\u7d44\u307f(\u30ed\u30c3\u30af\u3001\u5206\u96e2\u30ec\u30d9\u30eb\uff09&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u305f\u3060\u3001<span style=\"color: #ff0000;\"><strong>\u958b\u767a\u8005\u304c\u660e\u793a\u7684\u306b\u30ed\u30c3\u30af\u3092\u304b\u3051\u308b\u3053\u3068\u3082\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<h2>\u660e\u793a\u7684\u306b\u304b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30ed\u30c3\u30af\u306e\u7a2e\u985e<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u7a2e\u985e<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u884c\u30ed\u30c3\u30af<\/td>\n<td>\u7279\u5b9a\u306e1\u884c\u306b\u30ed\u30c3\u30af\u3092\u304b\u3051\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u8868\u30ed\u30c3\u30af<\/td>\n<td>\u7279\u5b9a\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u30ed\u30c3\u30af\u3092\u304b\u3051\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ed\u30c3\u30af<\/td>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u306b\u30ed\u30c3\u30af\u3092\u304b\u3051\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30ed\u30c3\u30af\u30a8\u30b9\u30ab\u30ec\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u4e00\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u3001\u81a8\u5927\u306a\u884c\u306e\u30ed\u30c3\u30af\u3092\u3059\u308b\u306e\u306f\u5927\u5909\u3067\u3059\u3002<\/p>\n<p>DBMS\u306b\u3088\u3063\u3066\u306f\u3001\u30ed\u30c3\u30af\u3059\u308b\u884c\u306e\u6570\u306b\u5fdc\u3058\u3066\u3001\u8868\u30ed\u30c3\u30af\u306b\u5207\u308a\u66ff\u308f\u308b<strong>\u300c\u30ed\u30c3\u30af\u30a8\u30b9\u30ab\u30ec\u30fc\u30b7\u30e7\u30f3\u300d<\/strong>\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u660e\u793a\u7684\u306b\u304b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30ed\u30c3\u30af\u306e\u53b3\u3057\u3055<\/h2>\n<p>\u307e\u305f\u3001\u300c\u30ed\u30c3\u30af\u306e\u7a2e\u985e\u300d\u3060\u3051\u3067\u306a\u304f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u30ed\u30c3\u30af\u306e\u53b3\u3057\u3055\u300d<\/strong><\/span>\u3082\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e2\u7a2e\u985e\u306b\u5206\u304b\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u6392\u4ed6\u30ed\u30c3\u30af<\/li>\n<li>\u5171\u6709\u30ed\u30c3\u30af<\/li>\n<\/ul>\n<h3>\u5171\u6709\u30ed\u30c3\u30af<\/h3>\n<p>\u4ed6\u304b\u3089\u306e\u5171\u6709\u30ed\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u3001<span style=\"color: #ff0000;\"><strong>\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u306b\u5229\u7528\u3055\u308c\u308b\u3002<\/strong><\/span><\/p>\n<p>\u4ed6\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304b\u3089\u53c2\u7167(SELECT)\u306e\u307f\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306eSELECT\u6587\u3067\u9078\u629e\u3057\u305f\u884c\u306b\u306f\u3001\u81ea\u52d5\u7684\u306b\u3053\u306e\u300c\u5171\u6709\u30ed\u30c3\u30af\u300d\u304c\u304b\u304b\u308b\u3002<\/p>\n<h3>\u6392\u4ed6\u30ed\u30c3\u30af\uff08\u5360\u6709\u30ed\u30c3\u30af\uff09<\/h3>\n<p>\u4ed6\u304b\u3089\u306e\u30ed\u30c3\u30af\u3092\u4e00\u5207\u8a31\u53ef\u3057\u306a\u3044\u305f\u3081\u3001<span style=\"color: #ff0000;\"><strong>\u66f4\u65b0\u51e6\u7406\u306b\u5229\u7528\u3055\u308c\u308b\u3002<\/strong><\/span><\/p>\n<p>SELECT\u6587\u306e\u672b\u5c3e\u306b\u300cFOR UPDATE\u300d\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u3053\u306e\u300c\u6392\u4ed6\u30ed\u30c3\u30af\u300d\u304c\u304b\u304b\u308a\u3001\u4ed6\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304b\u3089\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308b\u3002<\/p>\n<h4>\u6392\u4ed6\u30ed\u30c3\u30af\u3067\u3001\u51e6\u7406\u3092\u5f85\u305f\u305b\u305f\u304f\u306a\u3044\u5834\u5408<\/h4>\n<p>\u6392\u4ed6\u30ed\u30c3\u30af\u306f\u3001\u901a\u5e38\u30ed\u30c3\u30af\u304c\u89e3\u9664\u3055\u308c\u308b\u307e\u3067\u5f85\u3064\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u51e6\u7406\u306b\u3088\u3063\u3066\u306f\u3001\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u306b\u3088\u3063\u3066\u306f\u3001\u5f85\u3061\u6642\u9593\u3092\u4f5c\u308a\u305f\u304f\u306a\u3044\u30b7\u30b9\u30c6\u30e0\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3092\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300cFOR UPDATE(NOWAIT)\u300d\u3068\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30c3\u30af\u5931\u6557\u306e\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5373\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>\u300c\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u300d\u306b\u3064\u3044\u3066<\/h2>\n<p>\u4e0b\u8a18\u306e\u56f3\u306e\u3088\u3046\u306b\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u540c\u58eb\u306e\u30ed\u30c3\u30af\u304c\u3001\u4ea4\u5dee\u3057\u3066\u3057\u307e\u3046\u5834\u5408\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1657\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30c7\u30c3\u30c9\u30ed\u30c3\u30af.png\" alt=\"\" width=\"1002\" height=\"483\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30c7\u30c3\u30c9\u30ed\u30c3\u30af.png 1002w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30c7\u30c3\u30c9\u30ed\u30c3\u30af-300x145.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u30c7\u30c3\u30c9\u30ed\u30c3\u30af-768x370.png 768w\" sizes=\"(max-width: 1002px) 100vw, 1002px\" \/><\/p>\n<p><span style=\"font-size: 8pt; color: #999999;\">\u5f15\u7528\uff1ahttps:\/\/terasolunaorg.github.io\/guideline\/5.0.1.RELEASE\/ja\/ArchitectureInDetail\/ExclusionControl.html<\/span><\/p>\n<h3>\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u306e\u5bfe\u7b56<\/h3>\n<h4>\u305d\u3082\u305d\u3082\u3001DBMS\u3067\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3092\u89e3\u6d88\u3059\u308b\u4ed5\u7d44\u307f\u304c\u3042\u308b\u3002<\/h4>\n<p>\u591a\u304f\u306eDBMS\u3067\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u81ea\u52d5\u3067\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3092\u89e3\u6d88\u3059\u308b\u4ed5\u7d44\u307f<\/strong><\/span>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9a\u671f\u7684\u306b\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u7b87\u6240\u304c\u306a\u3044\u304b\u63a2\u3057\u3066\u3001\u7247\u65b9\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f37\u5236\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u304b\u3089\u89e3\u653e\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u5931\u6557\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3067\u304d\u308b\u3060\u3051\u907f\u3051\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<h4>\u958b\u767a\u8005\u5074\u3067\u306e\u5bfe\u7b56<\/h4>\n<p><strong>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u6642\u9593\u3092\u77ed\u304f\u3059\u308b\u3002<\/strong><\/p>\n<p>\u30ed\u30c3\u30af\u3057\u3066\u3044\u308b\u6642\u9593\u304c\u77ed\u3044\u307b\u3069\u3001\u4ed6\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3068\u7af6\u5408\u3059\u308b\u53ef\u80fd\u6027\u304c\u6e1b\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u540c\u3058\u9806\u756a\u3067\u30ed\u30c3\u30af\u3092\u304b\u3051\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/strong><\/p>\n<p>\u305d\u3082\u305d\u3082\u3001\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u76f8\u624b\u3068\u30ed\u30c3\u30af\u306e\u9806\u756a\u304c\u4ea4\u5dee\u3059\u308b\u3053\u3068\u300d<\/strong><\/span>\u304c\u539f\u56e0\u306a\u306e\u3067\u3001\u4ea4\u5dee\u3057\u306a\u3044\u3088\u3046\u306b\u3067\u304d\u308b\u3060\u3051\u540c\u3058\u9806\u756a\u3067\u30ed\u30c3\u30af\u3092\u304b\u3051\u308b\u3088\u3046\u306bSQL\u3092\u5de5\u592b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3001\u3054\u7d39\u4ecb\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u304c\u3001DBMS\u306f\u3001\u300c\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u7af6\u5408\u3055\u305b\u306a\u3044\u3088\u3046\u300d\u306b\u3059\u308b\u305f\u3081\u3001\u81ea\u52d5\u7684\u306b\u300c\u30ed\u30c3\u30af\u300d\u3092\u884c\u3044\u307e\u3059\u3002 \u3010\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3011\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u7af6\u5408\u3057\u306a\u3044\u305f\u3081\u306e\u4ed5\u7d44\u307f(\u30ed\u30c3\u30af\u3001\u5206\u96e2\u30ec\u30d9\u30eb\uff09 \u305f\u3060\u3001 [&hellip;]","protected":false},"author":1,"featured_media":1094,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1649"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1649"}],"version-history":[{"count":11,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1649\/revisions"}],"predecessor-version":[{"id":14714,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1649\/revisions\/14714"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/1094"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1649"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}