{"id":1644,"date":"2026-04-09T02:30:54","date_gmt":"2026-04-09T02:30:54","guid":{"rendered":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/"},"modified":"2026-04-09T02:30:54","modified_gmt":"2026-04-09T02:30:54","slug":"erd-troubleshooting-slow-query-schema-design","status":"publish","type":"post","link":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/","title":{"rendered":"\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u4e0d\u826f\u306a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad"},"content":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u3001\u554f\u984c\u304c\u6df1\u523b\u306a\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u308b\u307e\u3067\u3057\u3070\u3057\u3070\u76ee\u306b\u898b\u3048\u306a\u3044\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u9045\u5ef6\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3001\u5fdc\u7b54\u306a\u3057\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u7d4c\u9a13\u3059\u308b\u3068\u304d\u3001\u6839\u672c\u539f\u56e0\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u8868\u9762\u4e0b\u306b\u5b58\u5728\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3002\u305d\u308c\u306f\u30c7\u30fc\u30bf\u305d\u306e\u3082\u306e\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u3042\u308b\u3002\u30c7\u30fc\u30bf\u304c\u3069\u306e\u3088\u3046\u306b\u69cb\u9020\u5316\u3055\u308c\u3001\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3001\u4fdd\u5b58\u3055\u308c\u308b\u304b\u3092\u898f\u5b9a\u3059\u308b\u8a2d\u8a08\u56f3\u304c\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\uff08ERD\uff09\u3067\u3042\u308b\u3002\u9069\u5207\u306b\u4f5c\u6210\u3055\u308c\u305fERD\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u3068\u52b9\u7387\u7684\u306a\u53d6\u5f97\u3092\u4fdd\u8a3c\u3059\u308b\u3002\u9006\u306b\u3001\u4e0d\u5b8c\u5168\u306a\u56f3\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3044\u304f\u3089\u7528\u3044\u3066\u3082\u5b8c\u5168\u306b\u89e3\u6d88\u3067\u304d\u306a\u3044\u9045\u5ef6\u3092\u5f15\u304d\u8d77\u3053\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u4e0b\u4f4d\u306e\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3092\u5206\u6790\u3059\u308b\u3053\u3068\u3067\u3001\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u6df1\u304f\u6398\u308a\u4e0b\u3052\u307e\u3059\u3002ERD\u5185\u306e\u69cb\u9020\u7684\u6c7a\u5b9a\u304c\u3001\u30af\u30a8\u30ea\u5b9f\u884c\u8a08\u753b\u3001I\/O\u64cd\u4f5c\u3001\u5168\u4f53\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u5fdc\u7b54\u6027\u306b\u3069\u306e\u3088\u3046\u306b\u76f4\u63a5\u5f71\u97ff\u3059\u308b\u304b\u3092\u691c\u8a0e\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u8a2d\u8a08\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\u3001\u75c7\u72b6\u306e\u5bfe\u51e6\u3067\u306f\u306a\u304f\u3001\u554f\u984c\u306e\u6839\u672c\u539f\u56e0\u3092\u7279\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img alt=\"Charcoal sketch infographic illustrating Entity Relationship Diagram troubleshooting for slow database queries, showing structural anti-patterns like missing foreign keys and excessive normalization, cardinality impacts on join performance, data type optimization strategies, indexing best practices, and a schema validation checklist for diagnosing poor database design\" decoding=\"async\" src=\"https:\/\/www.viz-note.com\/wp-content\/uploads\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg\"\/><\/figure>\n<\/div>\n<h2>\ud83c\udfd7\ufe0f \u57fa\u76e4\uff1aERD\u304c\u30af\u30a8\u30ea\u5b9f\u884c\u306b\u4e0e\u3048\u308b\u5f71\u97ff<\/h2>\n<p>\u554f\u984c\u3092\u8a3a\u65ad\u3059\u308b\u524d\u306b\u3001\u30c7\u30fc\u30bf\u306e\u8996\u899a\u7684\u8868\u73fe\u3068\u30b3\u30de\u30f3\u30c9\u306e\u7269\u7406\u7684\u5b9f\u884c\u3068\u306e\u95a2\u4fc2\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002ERD\u306f\u6587\u66f8\u5316\u306e\u305f\u3081\u306e\u5358\u306a\u308b\u56f3\u9762\u3067\u306f\u306a\u304f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u304c\u5f37\u5236\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30eb\u30fc\u30eb\u306e\u96c6\u5408\u3067\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u9593\u306e\u3059\u3079\u3066\u306e\u7dda\u3001\u5b9a\u7fa9\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u5236\u7d04\u3001\u6307\u5b9a\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u578b\u304c\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u304c\u60c5\u5831\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u65b9\u6cd5\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30af\u30a8\u30ea\u304c\u9001\u4fe1\u3055\u308c\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u306f\u30b9\u30ad\u30fc\u30de\u30e1\u30bf\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5206\u6790\u3057\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u304c\u66d6\u6627\u307e\u305f\u306f\u975e\u52b9\u7387\u306a\u5834\u5408\u3001\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u306f\u6700\u9069\u3067\u306a\u3044\u30d1\u30b9\u3092\u9078\u629e\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30b7\u30fc\u30af\u3067\u306f\u306a\u304f\u30d5\u30eb\u30c6\u30fc\u30d6\u30eb\u30b9\u30ad\u30e3\u30f3\u304c\u767a\u751f\u3059\u308b\u3001\u307e\u305f\u306f\u51e6\u7406\u6642\u9593\u3092\u6307\u6570\u95a2\u6570\u7684\u306b\u5897\u5927\u3055\u305b\u308b\u30cd\u30b9\u30c8\u30eb\u30fc\u30d7\u7d50\u5408\u304c\u767a\u751f\u3059\u308b\u5f62\u3067\u73fe\u308c\u307e\u3059\u3002<\/p>\n<p>ERD\u304c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u4e3b\u306a\u9818\u57df\u306b\u306f\u4ee5\u4e0b\u304c\u542b\u307e\u308c\u307e\u3059\uff1a<\/p>\n<ul>\n<li><strong>\u7d50\u5408\u306e\u8907\u96d1\u3055\uff1a<\/strong> \u5b9a\u7fa9\u3055\u308c\u305f\u95a2\u4fc2\u306e\u6570\u304c\u3001\u95a2\u9023\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u7d50\u5408\u306e\u6570\u3092\u6c7a\u5b9a\u3059\u308b\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u6574\u5408\u6027\u5236\u7d04\uff1a<\/strong> \u5916\u90e8\u30ad\u30fc\u3068\u4e00\u610f\u5236\u7d04\u306f\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u306b\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u52a0\u3048\u308b\u304c\u3001\u8aad\u307f\u8fbc\u307f\u64cd\u4f5c\u3092\u6700\u9069\u5316\u3067\u304d\u308b\u3002<\/li>\n<li><strong>\u6b63\u898f\u5316\u30ec\u30d9\u30eb\uff1a<\/strong> \u30c7\u30fc\u30bf\u304c\u30c6\u30fc\u30d6\u30eb\u9593\u3067\u3069\u308c\u3060\u3051\u5206\u5272\u3055\u308c\u308b\u304b\u306e\u5ea6\u5408\u3044\u304c\u3001\u53d6\u5f97\u6642\u306b\u30b9\u30ad\u30e3\u30f3\u3055\u308c\u308b\u30c7\u30fc\u30bf\u91cf\u306b\u5f71\u97ff\u3059\u308b\u3002<\/li>\n<li><strong>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u6226\u7565\uff1a<\/strong> \u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u304c\u3001\u4e00\u822c\u7684\u306a\u30af\u30a8\u30ea\u30d1\u30bf\u30fc\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u8ad6\u7406\u7684\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u914d\u7f6e\u3067\u304d\u308b\u5834\u6240\u3092\u6c7a\u5b9a\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udd0d \u69cb\u9020\u7684\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\u306e\u7279\u5b9a<\/h2>\n<p>\u591a\u304f\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u554f\u984c\u306f\u3001\u521d\u671f\u8a2d\u8a08\u6bb5\u968e\u3067\u306f\u8a31\u5bb9\u53ef\u80fd\u3060\u3063\u305f\u30d1\u30bf\u30fc\u30f3\u306b\u8d77\u56e0\u3059\u308b\u304c\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u5897\u52a0\u3059\u308b\u306b\u3064\u308c\u3066\u8ca0\u50b5\u3068\u306a\u308b\u3002\u3053\u308c\u3089\u306e\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3\u306f\u56f3\u9762\u3067\u306f\u3057\u3070\u3057\u3070\u5fae\u5999\u306b\u898b\u3048\u308b\u304c\u3001\u30af\u30a8\u30ea\u30a8\u30f3\u30b8\u30f3\u3067\u306f\u9855\u8457\u306a\u6469\u64e6\u3092\u5f15\u304d\u8d77\u3053\u3059\u3002\u4ee5\u4e0b\u306b\u3001\u4e00\u822c\u7684\u306a\u69cb\u9020\u7684\u6b20\u9665\u3068\u305d\u306e\u901f\u5ea6\u3078\u306e\u76f4\u63a5\u7684\u306a\u5f71\u97ff\u3092\u8aac\u660e\u3059\u308b\u3002<\/p>\n<table border=\"1\" cellpadding=\"10\" cellspacing=\"0\">\n<tr>\n<th>\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3<\/th>\n<th>ERD\u306b\u304a\u3051\u308b\u8996\u899a\u7684\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf<\/th>\n<th>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff<\/th>\n<\/tr>\n<tr>\n<td><strong>\u5916\u90e8\u30ad\u30fc\u306e\u6b20\u843d<\/strong><\/td>\n<td>\u5236\u7d04\u5b9a\u7fa9\u306e\u306a\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u3064\u306a\u3050\u7dda\u3002<\/td>\n<td>\u5b64\u7acb\u3057\u305f\u30ec\u30b3\u30fc\u30c9\u3092\u8a31\u53ef\u3057\u3001\u8907\u96d1\u306a\u30af\u30a8\u30ea\u304c\u7121\u52b9\u306a\u30c7\u30fc\u30bf\u3092\u624b\u52d5\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u3092\u5f37\u3044\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>\u904e\u5270\u306a\u6b63\u898f\u5316<\/strong><\/td>\n<td>\u5358\u4e00\u30ab\u30e9\u30e0\u306e\u95a2\u4fc2\u3092\u6301\u3064\u591a\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3002<\/td>\n<td>\u5358\u4e00\u306e\u8ad6\u7406\u7684\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u518d\u69cb\u6210\u3059\u308b\u305f\u3081\u306b\u904e\u5270\u306a\u7d50\u5408\u304c\u5fc5\u8981\u3068\u306a\u308a\u3001CPU\u4f7f\u7528\u91cf\u304c\u5897\u52a0\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>\u7d50\u5408\u30c6\u30fc\u30d6\u30eb\u306a\u3057\u306e\u591a\u5bfe\u591a<\/strong><\/td>\n<td>2\u3064\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u9593\u306e\u76f4\u63a5\u7684\u306a\u591a\u5bfe\u591a\u95a2\u4fc2\u306e\u7dda\u3002<\/td>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u306f\u901a\u5e38\u3001\u30d6\u30ea\u30c3\u30b8\u30c6\u30fc\u30d6\u30eb\u3092\u5fc5\u8981\u3068\u3059\u308b\u304c\u3001\u3053\u308c\u3092\u6b20\u304f\u3068\u975e\u52b9\u7387\u306a\u4ee3\u66ff\u624b\u6bb5\u304c\u767a\u751f\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>\u5e83\u3044\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc<\/strong><\/td>\n<td>\u8907\u6570\u306e\u5927\u304d\u306a\u5217\u3092\u542b\u3080\u8907\u5408\u30ad\u30fc\u3002<\/td>\n<td>\u3053\u306e\u30ad\u30fc\u3092\u53c2\u7167\u3059\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30b5\u30a4\u30ba\u3092\u5897\u52a0\u3055\u305b\u3001\u691c\u7d22\u3092\u9045\u304f\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>NULL\u5024\u3067\u57cb\u3081\u3089\u308c\u305f\u5217<\/strong><\/td>\n<td>\u8ad6\u7406\u7684\u306a\u7406\u7531\u306a\u304fNULL\u3092\u8a31\u5bb9\u3059\u308b\u5c5e\u6027\u3002<\/td>\n<td>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f7f\u7528\u3092\u59a8\u3052\u305f\u308a\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u9078\u629e\u6027\u3092\u4f4e\u4e0b\u3055\u305b\u305f\u308a\u3057\u3001\u30d5\u30eb\u30b9\u30ad\u30e3\u30f3\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/td>\n<\/tr>\n<\/table>\n<h2>\ud83d\udd17 \u95a2\u4fc2\u306e\u57fa\u6570\u3068\u7d50\u5408\u30b3\u30b9\u30c8<\/h2>\n<p>\u57fa\u6570\u306f\u3001\u3042\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u5225\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u95a2\u9023\u3059\u308b\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3002\u3053\u308c\u306f\u30af\u30a8\u30ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u95a2\u3059\u308bERD\u306e\u6700\u3082\u91cd\u8981\u306a\u5074\u9762\u3067\u3042\u308b\u3002\u8aa4\u3063\u305f\u57fa\u6570\u5b9a\u7fa9\u306f\u3001\u30af\u30a8\u30ea\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u884c\u3088\u308a\u3082\u591a\u304f\u306e\u884c\u3092\u51e6\u7406\u3055\u305b\u308b\u3053\u3068\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u5f37\u3044\u308b\u3002<\/p>\n<p>\u9045\u3044\u30af\u30a8\u30ea\u3092\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u969b\u306b\u306f\u3001\u56f3\u4e0a\u306e\u95a2\u4fc2\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8ad6\u7406\u7684\u8981\u4ef6\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u3082\u3057\u30011\u5bfe\u591a\u3067\u3042\u308b\u3079\u304d\u95a2\u4fc2\u304c\u591a\u5bfe\u591a\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30af\u30a8\u30ea\u30a8\u30f3\u30b8\u30f3\u306f\u5b58\u5728\u3057\u306a\u3044\u304b\u3001\u975e\u52b9\u7387\u306b\u30c7\u30fc\u30bf\u304c\u5165\u529b\u3055\u308c\u305f\u7d50\u5408\u30c6\u30fc\u30d6\u30eb\u3092\u4ecb\u3057\u305f\u7d50\u5408\u3092\u6e96\u5099\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<h3>\u4e00\u822c\u7684\u306a\u57fa\u6570\u306e\u554f\u984c<\/h3>\n<ul>\n<li><strong>\u57fa\u6570\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\uff1a<\/strong> \u56f3\u304c\u95a2\u4fc2\u304c\u5fc5\u9808\u304b\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3092\u660e\u793a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30af\u30a8\u30ea\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u306f\u6700\u60aa\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u4eee\u5b9a\u3057\u3001NULL\u5024\u306e\u8ffd\u52a0\u30c1\u30a7\u30c3\u30af\u3092\u52a0\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/li>\n<li><strong>\u518d\u5e30\u7684\u95a2\u4fc2\uff1a<\/strong> \u81ea\u5df1\u53c2\u7167\u30c6\u30fc\u30d6\u30eb\uff08\u4f8b\uff1a\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u81ea\u8eab\u3092\u53c2\u7167\u3059\u308bEmployee\u30c6\u30fc\u30d6\u30eb\uff09\u306f\u3001\u30af\u30a8\u30ea\u306b\u6df1\u3044\u30cd\u30b9\u30c8\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002\u81ea\u5df1\u53c2\u7167\u5217\u306b\u9069\u5207\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u306a\u3051\u308c\u3070\u3001\u3053\u308c\u3089\u306e\u30af\u30a8\u30ea\u306f\u6307\u6570\u95a2\u6570\u7684\u306b\u9045\u304f\u306a\u308b\u3002<\/li>\n<li><strong>\u5faa\u74b0\u4f9d\u5b58\uff1a<\/strong> Table A\u304cB\u306b\u30ea\u30f3\u30af\u3057\u3001B\u304cC\u306b\u30ea\u30f3\u30af\u3057\u3001C\u304cA\u306b\u623b\u308b\u8907\u96d1\u306a\u95a2\u4fc2\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3002\u3053\u306e\u69cb\u9020\u306f\u30a8\u30f3\u30b8\u30f3\u304c\u30c7\u30fc\u30bf\u30b0\u30e9\u30d5\u3092\u305f\u3069\u308b\u3053\u3068\u3092\u96e3\u3057\u304f\u3057\u3001\u3057\u3070\u3057\u3070\u30e1\u30e2\u30ea\u4e0a\u306b\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u7d50\u679c\u3068\u306a\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u554f\u984c\u3092\u8efd\u6e1b\u3059\u308b\u305f\u3081\u3001ERD\u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u30ea\u30f3\u30af\u3068\u5fc5\u9808\u30ea\u30f3\u30af\u3092\u660e\u78ba\u306b\u533a\u5225\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002\u5fc5\u9808\u30ea\u30f3\u30af\u306f\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u304cNULL\u30c1\u30a7\u30c3\u30af\u3092\u30b9\u30ad\u30c3\u30d7\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\u5b9f\u884c\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u30ea\u30f3\u30af\u306f\u3001\u95a2\u4fc2\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u8ffd\u52a0\u30ed\u30b8\u30c3\u30af\u3092\u5fc5\u8981\u3068\u3059\u308b\u3002<\/p>\n<h2>\ud83d\udccf \u30c7\u30fc\u30bf\u578b\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u52b9\u7387<\/h2>\n<p>\u30b9\u30ad\u30fc\u30de\u5b9a\u7fa9\u5185\u306e\u30c7\u30fc\u30bf\u578b\u306e\u9078\u629e\u306f\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30a4\u30ba\u3068\u6bd4\u8f03\u901f\u5ea6\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3002\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b\u306e2\u3064\u306e\u5217\u3092\u6bd4\u8f03\u3059\u308b\u30af\u30a8\u30ea\u306f\u3001\u3057\u3070\u3057\u3070\u6697\u9ed9\u306e\u5909\u63db\u3092\u5f15\u304d\u8d77\u3053\u3059\u3002\u3053\u308c\u3089\u306e\u5909\u63db\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f7f\u7528\u3092\u59a8\u3052\u3001\u30a8\u30f3\u30b8\u30f3\u306b\u3059\u3079\u3066\u306e\u884c\u3092\u51e6\u7406\u3055\u305b\u308b\u3053\u3068\u3092\u5f37\u3044\u308b\u3002<\/p>\n<h3>\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u306e\u5f71\u97ff<\/h3>\n<p>\u30b9\u30ad\u30fc\u30de\u304c\u3059\u3079\u3066\u306e\u5217\u306b\u6c4e\u7528\u7684\u306a\u30c7\u30fc\u30bf\u578b\uff08\u4f8b\uff1a\u77ed\u3044\u30b3\u30fc\u30c9\u306b\u5927\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f7f\u7528\uff09\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30a3\u30b9\u30af\u30b9\u30da\u30fc\u30b9\u3068\u30e1\u30e2\u30ea\u3092\u3088\u308a\u591a\u304f\u6d88\u8cbb\u3059\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d0\u30c3\u30d5\u30a1\u30d7\u30fc\u30eb\u306e\u5b9f\u52b9\u30b5\u30a4\u30ba\u304c\u6e1b\u5c11\u3057\u3001\u30e1\u30e2\u30ea\u306b\u4fdd\u6301\u3067\u304d\u308b\u30db\u30c3\u30c8\u30c7\u30fc\u30bf\u30da\u30fc\u30b8\u304c\u5c11\u306a\u304f\u306a\u308b\u3002\u7d50\u679c\u3068\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306f\u3088\u308a\u591a\u304f\u306e\u30c7\u30fc\u30bf\u3092\u9045\u3044\u30c7\u30a3\u30b9\u30af\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u8aad\u307f\u53d6\u3089\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<h3>\u6bd4\u8f03\u6027\u80fd<\/h3>\n<p>\u6574\u6570\u306e\u6bd4\u8f03\u306f\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u3088\u308a\u3082\u8457\u3057\u304f\u9ad8\u901f\u3067\u3042\u308b\u3002ERD\u3067\u5916\u90e8\u30ad\u30fc\u3092\u6587\u5b57\u5217\uff08\u4f8b\uff1aVARCHAR\uff09\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u304c\u3001\u6574\u6570\uff08\u4f8b\uff1aINT\uff09\u3067\u3042\u308b\u3079\u304d\u5834\u5408\u3001\u7d50\u5408\u64cd\u4f5c\u306f\u30d0\u30a4\u30ca\u30ea\u6570\u5024\u6bd4\u8f03\u3067\u306f\u306a\u304f\u3001\u6587\u5b57\u5358\u4f4d\u3067\u6bd4\u8f03\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u51e6\u7406\u3055\u308c\u308b\u5404\u884c\u306bCPU\u30b5\u30a4\u30af\u30eb\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3002<\/p>\n<ul>\n<li><strong>\u56fa\u5b9a\u9577\u578b\u3092\u4f7f\u7528\u3059\u308b\uff1a<\/strong> \u56fd\u30b3\u30fc\u30c9\u3084\u30b9\u30c6\u30fc\u30bf\u30b9\u30d5\u30e9\u30b0\u306a\u3069\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u306f\u3001\u56fa\u5b9a\u9577\u6587\u5b57\u5217\u3092\u4f7f\u7528\u3059\u308b\u3002\u53ef\u5909\u9577\u6587\u5b57\u5217\u306f\u3001\u8aad\u307f\u8fbc\u307f\u6bce\u306b\u9577\u3055\u3092\u8a08\u7b97\u3059\u308b\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u3082\u305f\u3089\u3059\u3002<\/li>\n<li><strong>\u30ad\u30fc\u306b\u5927\u898f\u6a21\u306a\u30c6\u30ad\u30b9\u30c8\u3092\u907f\u3051\u308b\uff1a<\/strong> \u30c6\u30ad\u30b9\u30c8\u304c\u5927\u91cf\u306b\u542b\u307e\u308c\u308b\u5217\u3092\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u307e\u305f\u306f\u5916\u90e8\u30ad\u30fc\u3068\u3057\u3066\u6c7a\u3057\u3066\u4f7f\u7528\u3057\u306a\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u305d\u308c\u3092\u53c2\u7167\u3059\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u80a5\u5927\u5316\u3059\u308b\u3002<\/li>\n<li><strong>\u89aa\u30c6\u30fc\u30d6\u30eb\u3068\u5b50\u30c6\u30fc\u30d6\u30eb\u306e\u578b\u3092\u4e00\u81f4\u3055\u305b\u308b\uff1a<\/strong> \u5b50\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u578b\u304c\u89aa\u30c6\u30fc\u30d6\u30eb\u3068\u6b63\u78ba\u306b\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002\u308f\u305a\u304b\u306a\u9055\u3044\uff08\u4f8b\uff1aINT vs BIGINT\uff09\u3067\u3082\u3001\u7d50\u5408\u6642\u306b\u5909\u63db\u3092\u5f37\u5236\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udd11 \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u53ef\u8996\u6027\u3068\u6226\u7565<\/h2>\n<p>ERD\u306f\u8ad6\u7406\u69cb\u9020\u306e\u8996\u899a\u7684\u8868\u73fe\u3067\u3042\u308b\u304c\u3001\u7269\u7406\u7684\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u6226\u7565\u306b\u3082\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3079\u304d\u3067\u3042\u308b\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3057\u3070\u3057\u3070\u30b9\u30ad\u30fc\u30de\u4f5c\u6210\u5f8c\u306b\u8ffd\u52a0\u3055\u308c\u308b\u304c\u3001\u8a2d\u8a08\u6bb5\u968e\u3067\u3069\u3053\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u5fc5\u8981\u304b\u3092\u4e88\u6e2c\u3059\u3079\u304d\u3067\u3042\u308b\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5217\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3092\u884c\u3046\u30af\u30a8\u30ea\u306f\u3001\u8a2d\u8a08\u4e0a\u306e\u30ae\u30e3\u30c3\u30d7\u3092\u793a\u3059\u4e3b\u8981\u306a\u5146\u5019\u3067\u3042\u308b\u3002<\/p>\n<h3>ERD\u306b\u304a\u3051\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u306e\u6a5f\u4f1a<\/h3>\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u691c\u8a0e\u3059\u308b\u969b\u3001\u691c\u7d22\u6761\u4ef6\u3084\u7d50\u5408\u3067\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u30ab\u30e9\u30e0\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><strong>\u5916\u90e8\u30ad\u30fc\uff1a<\/strong>\u3053\u308c\u3089\u306f\u307b\u307c\u5e38\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u3055\u308c\u308b\u3079\u304d\u3067\u3059\u3002\u30af\u30a8\u30ea\u304c\u5916\u90e8\u30ad\u30fc\u3092\u4f7f\u3063\u3066Table A\u3068Table B\u3092\u7d50\u5408\u3059\u308b\u5834\u5408\u3001Table B\u306e\u30ad\u30fc\u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3001Table A\u306e\u5404\u884c\u306b\u5bfe\u3057\u3066Table B\u5168\u4f53\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/li>\n<li><strong>\u30b9\u30c6\u30fc\u30bf\u30b9\u30d5\u30e9\u30b0\uff1a<\/strong>\u30ec\u30b3\u30fc\u30c9\u306e\u72b6\u614b\u3092\u5b9a\u7fa9\u3059\u308b\u30ab\u30e9\u30e0\uff08\u4f8b\uff1aIs_Active\u3001Order_Status\uff09\u306f\u3001\u3088\u304fWHERE\u53e5\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u306f\u30d5\u30eb\u30c6\u30fc\u30d6\u30eb\u30b9\u30ad\u30e3\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u65e5\u4ed8\u7bc4\u56f2\uff1a<\/strong>\u76e3\u67fb\u30ed\u30b0\u3084\u53d6\u5f15\u30ed\u30b0\u3092\u6301\u3064\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u65e5\u4ed8\u3067\u983b\u7e41\u306b\u30af\u30a8\u30ea\u304c\u884c\u308f\u308c\u307e\u3059\u3002\u65e5\u4ed8\u30ab\u30e9\u30e0\u306f\u7bc4\u56f2\u30b9\u30ad\u30e3\u30f3\u3092\u52b9\u7387\u7684\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u3059\u3079\u304d\u3067\u3059\u3002<\/li>\n<\/ul>\n<p>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u6570\u3092\u66f8\u304d\u8fbc\u307f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30d0\u30e9\u30f3\u30b9\u3055\u305b\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u5404\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306fINSERT\u3001UPDATE\u3001DELETE\u64cd\u4f5c\u306b\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u8aad\u307f\u8fbc\u307f\u304c\u91cd\u3044\u30b9\u30ad\u30fc\u30de\u304c\u9069\u5207\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3001\u66f8\u304d\u8fbc\u307f\u30b3\u30b9\u30c8\u3092\u306f\u308b\u304b\u306b\u4e0a\u56de\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u9045\u5ef6\u304c\u767a\u751f\u3057\u307e\u3059\u3002ERD\u306f\u3001\u8aad\u307f\u8fbc\u307f\u304c\u91cd\u3044\u30c6\u30fc\u30d6\u30eb\uff08\u4f8b\uff1a\u53c2\u7167\u30c6\u30fc\u30d6\u30eb\uff09\u3068\u66f8\u304d\u8fbc\u307f\u304c\u91cd\u3044\u30c6\u30fc\u30d6\u30eb\uff08\u4f8b\uff1a\u53d6\u5f15\u30ed\u30b0\uff09\u3092\u53ef\u8996\u5316\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316\u306e\u610f\u601d\u6c7a\u5b9a\u3092\u652f\u63f4\u3057\u307e\u3059\u3002<\/p>\n<h2>\ud83d\udeab \u7d50\u5408\u306e\u75c5\u7406\u5b66<\/h2>\n<p>\u9045\u3044\u30af\u30a8\u30ea\u306e\u6700\u3082\u4e00\u822c\u7684\u306a\u539f\u56e0\u306e\u4e00\u3064\u304c\u7d50\u5408\u7d4c\u8def\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u63a5\u7d9a\u3059\u308b\u9806\u5e8f\u3092\u6307\u3057\u307e\u3059\u3002\u8a2d\u8a08\u304c\u4e0d\u5341\u5206\u306a\u30b9\u30ad\u30fc\u30de\u306f\u3001\u8ad6\u7406\u7684\u306b\u306f\u6b63\u3057\u3044\u304c\u8a08\u7b97\u30b3\u30b9\u30c8\u304c\u9ad8\u3044\u7d4c\u8def\u306b\u30a8\u30f3\u30b8\u30f3\u3092\u5f37\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ab\u30eb\u30c6\u30b7\u30a2\u30f3\u7a4d<\/h3>\n<p>\u30b9\u30ad\u30fc\u30de\u306b\u9069\u5207\u306a\u5236\u7d04\u304c\u306a\u304f\u3001\u307e\u305f\u306f\u30af\u30a8\u30ea\u30ed\u30b8\u30c3\u30af\u304c\u7d50\u5408\u6761\u4ef6\u3092\u6b63\u3057\u304f\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30a8\u30f3\u30b8\u30f3\u306f\u30ab\u30eb\u30c6\u30b7\u30a2\u30f3\u7a4d\u3092\u751f\u6210\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306fTable A\u306e\u5404\u884c\u304cTable B\u306e\u5404\u884c\u3059\u3079\u3066\u3068\u7d44\u307f\u5408\u308f\u3055\u308c\u308b\u72b6\u614b\u3067\u3059\u3002\u7d50\u679c\u30bb\u30c3\u30c8\u306f\u6307\u6570\u95a2\u6570\u7684\u306b\u5897\u5927\u3057\u3001\u30af\u30a8\u30ea\u304c\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u304b\u3001\u5229\u7528\u53ef\u80fd\u306a\u30e1\u30e2\u30ea\u3092\u3059\u3079\u3066\u6d88\u8cbb\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>ERD\u3067\u306f\u3001\u591a\u5bfe\u591a\u306e\u95a2\u4fc2\u304c\u7d50\u5408\u30c6\u30fc\u30d6\u30eb\u306b\u3088\u3063\u3066\u9069\u5207\u306b\u4e2d\u7d99\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u307e\u305f\u306f\u7d50\u5408\u30c6\u30fc\u30d6\u30eb\u306b\u5fc5\u8981\u306a\u5916\u90e8\u30ad\u30fc\u5236\u7d04\u304c\u6b20\u3051\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u3053\u306e\u72b6\u6cc1\u304c\u3088\u304f\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30d6\u30af\u30a8\u30ea vs. \u7d50\u5408<\/h3>\n<p>\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306f\u3001\u30af\u30a8\u30ea\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u7d50\u5408\u3067\u5b9f\u884c\u3067\u304d\u308b\u304b\u3001\u30b5\u30d6\u30af\u30a8\u30ea\u3092\u5fc5\u8981\u3068\u3059\u308b\u304b\u306b\u5f71\u97ff\u3057\u307e\u3059\u3002\u30b5\u30d6\u30af\u30a8\u30ea\u306f\u3001\u5916\u90e8\u30af\u30a8\u30ea\u306e\u5404\u884c\u306b\u5bfe\u3057\u3066\u5185\u90e8\u30af\u30a8\u30ea\u3092\u4e00\u5ea6\u305a\u3064\u5b9f\u884c\u3059\u308b\u305f\u3081\u3001\u6642\u9593\u8a08\u7b97\u91cf\u304c\u4e8c\u6b21\u95a2\u6570\u7684\u306b\u306a\u308a\u307e\u3059\u3002\u76f4\u63a5\u7d50\u5408\u304c\u53ef\u80fd\u306a\u6b63\u898f\u5316\u3055\u308c\u305f\u30b9\u30ad\u30fc\u30de\u306f\u3001\u30b5\u30d6\u30af\u30a8\u30ea\u3092\u5f37\u5236\u3059\u308b\u975e\u6b63\u898f\u5316\u69cb\u9020\u3088\u308a\u3082\u4e00\u822c\u7684\u306b\u597d\u307e\u308c\u307e\u3059\u3002<\/p>\n<h2>\u2705 \u30b9\u30ad\u30fc\u30de\u691c\u8a3c\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n<p>ERD\u306b\u57fa\u3065\u3044\u3066\u9045\u3044\u30af\u30a8\u30ea\u3092\u4f53\u7cfb\u7684\u306b\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u69cb\u9020\u7684\u306a\u30ec\u30d3\u30e5\u30fc\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u3088\u308a\u3001\u8a2d\u8a08\u306e\u3059\u3079\u3066\u306e\u91cd\u8981\u306a\u8981\u7d20\u3092\u691c\u8a3c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>1. \u5916\u90e8\u30ad\u30fc\u5236\u7d04\u306e\u78ba\u8a8d<\/h3>\n<ul>\n<li>\u3059\u3079\u3066\u306e\u5916\u90e8\u30ad\u30fc\u304c\u56f3\u9762\u4e0a\u3067\u660e\u793a\u7684\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/li>\n<li>\u610f\u56f3\u3057\u306a\u3044\u30c7\u30fc\u30bf\u79fb\u52d5\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u306e\u3042\u308b\u7d1a\u9023\u30eb\u30fc\u30eb\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u304b\uff1f<\/li>\n<li>\u95a2\u4fc2\u306e\u4e21\u5074\u306e\u30c7\u30fc\u30bf\u578b\u306f\u540c\u4e00\u3067\u3059\u304b\uff1f<\/li>\n<\/ul>\n<h3>2. \u7d50\u5408\u983b\u5ea6\u306e\u5206\u6790<\/h3>\n<ul>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30b8\u30c3\u30af\u3067\u6700\u3082\u983b\u7e41\u306b\u7d50\u5408\u3055\u308c\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u7279\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u3053\u308c\u3089\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u56f3\u9762\u4e0a\u3067\u96a3\u63a5\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\u305d\u308c\u3068\u3082\u3001\u8907\u6570\u306e\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\u3092\u7d4c\u7531\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/li>\n<li>\u3053\u308c\u3089\u306e\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\u306e\u3046\u3061\u3001\u7d50\u5408\u306e\u6df1\u3055\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u7d71\u5408\u3067\u304d\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/li>\n<\/ul>\n<h3>3. NULL\u8a31\u5bb9\u6027\u306e\u78ba\u8a8d<\/h3>\n<ul>\n<li>\u6c7a\u3057\u3066NULL\u306b\u306a\u3089\u306a\u3044\u30ab\u30e9\u30e0\u306f\u3001\u660e\u793a\u7684\u306bNOT NULL\u3068\u3057\u3066\u30de\u30fc\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/li>\n<li>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4e00\u90e8\u3067\u3042\u308b\u30ab\u30e9\u30e0\u306bNULL\u3092\u8a31\u53ef\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/li>\n<\/ul>\n<h3>4. \u30c7\u30fc\u30bf\u578b\u306e\u78ba\u8a8d<\/h3>\n<ul>\n<li>\u6570\u5024\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u9069\u5207\u306a\u6700\u5c0f\u30b5\u30a4\u30ba\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304b\uff08\u4f8b\uff1aTINYINT \u3068 BIGINT\uff09\uff1f<\/li>\n<li>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u5207\u308a\u6368\u3066\u3084\u4f59\u5206\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u9069\u5207\u306a\u9577\u3055\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/li>\n<\/ul>\n<h3>5. \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30ab\u30d0\u30ec\u30c3\u30b8\u306e\u8a55\u4fa1<\/h3>\n<ul>\n<li>\u4e3b\u30ad\u30fc\u304a\u3088\u3073\u5916\u90e8\u30ad\u30fc\u306b\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/li>\n<li>\u983b\u7e41\u306b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u308c\u308b\u30ab\u30e9\u30e0\u306b\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/li>\n<li>\u4e00\u822c\u7684\u306a\u8907\u6570\u30ab\u30e9\u30e0\u30af\u30a8\u30ea\u7528\u306b\u8907\u5408\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/li>\n<\/ul>\n<h2>\ud83d\udee0\ufe0f \u4fee\u6b63\u306e\u305f\u3081\u306e\u5b9f\u8df5\u7684\u30b9\u30c6\u30c3\u30d7<\/h2>\n<p>ERD\u306e\u5206\u6790\u3068\u554f\u984c\u306e\u7279\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u6b21\u306f\u4fee\u6b63\u30d5\u30a7\u30fc\u30ba\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30c7\u30fc\u30bf\u6574\u5408\u6027\u3092\u640d\u306a\u308f\u305a\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u306b\u5408\u308f\u305b\u3066\u30b9\u30ad\u30fc\u30de\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u95a2\u4fc2\u306e\u6700\u9069\u5316\uff1a<\/strong> ERD\u306b\u904e\u5ea6\u306b\u8907\u96d1\u306a\u95a2\u4fc2\u304c\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u308c\u3089\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u5b9a\u306e\u8aad\u307f\u53d6\u308a\u304c\u983b\u7e41\u306a\u9818\u57df\u3067\u6b63\u898f\u5316\u3092\u7de9\u3081\u308b\u3053\u3068\u3067\u3001\u7d50\u5408\u306e\u5fc5\u8981\u6027\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u89aa\u30c6\u30fc\u30d6\u30eb\u306b\u95a2\u9023\u3059\u308b\u30a2\u30a4\u30c6\u30e0\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u6570\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3001\u6bce\u56de\u7d50\u5408\u3057\u3066\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u30c7\u30fc\u30bf\u578b\u306e\u6700\u9069\u5316\uff1a<\/strong>\u3088\u308a\u52b9\u7387\u7684\u306a\u4ee3\u66ff\u30c7\u30fc\u30bf\u578b\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u65e5\u4ed8\u304c\u65e5\u5358\u4f4d\u3067\u3057\u304b\u4fdd\u5b58\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u6642\u523b\u3092\u542b\u3080datetime\u3067\u306f\u306a\u304f\u3001\u65e5\u4ed8\u306e\u307f\u306e\u578b\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002ID\u304c\u6570\u5024\u306e\u5834\u5408\u3001\u6587\u5b57\u5217\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306e\u5c0e\u5165\uff1a<\/strong>\u975e\u5e38\u306b\u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306e\u5834\u5408\u3001ERD\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6226\u7565\u3092\u53cd\u6620\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306f\u3057\u3070\u3057\u3070\u7269\u7406\u7684\u306a\u5b9f\u88c5\u306e\u8a73\u7d30\u3067\u3059\u304c\u3001\u8ad6\u7406\u8a2d\u8a08\u3067\u306f\u30c7\u30fc\u30bf\u306e\u30b0\u30eb\u30fc\u30d7\u5316\u65b9\u6cd5\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u65e5\u4ed8\u3084\u5730\u57df\u306b\u57fa\u3065\u304f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306b\u3088\u308a\u3001\u30a8\u30f3\u30b8\u30f3\u306f\u30c7\u30fc\u30bf\u306e\u95a2\u9023\u3059\u308b\u30bb\u30b0\u30e1\u30f3\u30c8\u306e\u307f\u3092\u30b9\u30ad\u30e3\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\ud83d\udd0e \u6700\u7d42\u7684\u306a\u8003\u616e\u4e8b\u9805<\/h2>\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u53cd\u5fa9\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u3067\u3059\u3002ERD\u306f\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u304a\u3051\u308b\u4e2d\u5fc3\u7684\u306a\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u3067\u3059\u3002\u56f3\u3092\u8ad6\u7406\u69cb\u9020\u3068\u7269\u7406\u7684\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5236\u7d04\u3092\u53cd\u6620\u3059\u308b\u52d5\u7684\u306a\u6587\u66f8\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u304c\u5897\u5927\u3057\u3066\u3082\u5fdc\u7b54\u6027\u3092\u7dad\u6301\u3067\u304d\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3092\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u3089\u3086\u308b\u72b6\u6cc1\u306b\u9069\u3057\u305f\u5358\u4e00\u306e\u8a2d\u8a08\u306f\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u9ad8\u983b\u5ea6\u306e\u66f8\u304d\u8fbc\u307f\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30b9\u30ad\u30fc\u30de\u306f\u3001\u8907\u96d1\u306a\u5206\u6790\u30af\u30a8\u30ea\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u3082\u306e\u3068\u7570\u306a\u308b\u6027\u80fd\u3092\u793a\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u76ee\u6a19\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7279\u5b9a\u306e\u30a2\u30af\u30bb\u30b9\u30d1\u30bf\u30fc\u30f3\u306b\u5408\u308f\u305b\u3066\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u5b9f\u969b\u306e\u30af\u30a8\u30ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u7167\u3089\u3057\u5408\u308f\u305b\u3066ERD\u3092\u5b9a\u671f\u7684\u306b\u898b\u76f4\u3059\u3053\u3068\u3067\u3001\u65e9\u671f\u306b\u30ba\u30ec\u3092\u691c\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306e\u69cb\u9020\u7684\u6574\u5408\u6027\u306b\u6ce8\u76ee\u3059\u308b\u3053\u3068\u3067\u3001\u9045\u5ef6\u306e\u6839\u672c\u539f\u56e0\u3092\u6392\u9664\u3067\u304d\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306b\u30d1\u30c3\u30c1\u3092\u5f53\u3066\u308b\u3088\u308a\u3082\u3001\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306e\u65b9\u304c\u6301\u7d9a\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002\u5805\u56fa\u306a\u30b9\u30ad\u30fc\u30de\u306e\u57fa\u76e4\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3057\u3001\u9069\u5fdc\u3057\u3001\u6642\u9593\u3068\u3068\u3082\u306b\u4fe1\u983c\u6027\u9ad8\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<p>\u5909\u66f4\u3092\u884c\u3063\u305f\u5f8c\u3082\u3001\u30af\u30a8\u30ea\u5b9f\u884c\u8a08\u753b\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3092\u7d99\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5b9f\u884c\u8a08\u753b\u3092\u53ef\u8996\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u6700\u9069\u5316\u30a8\u30f3\u30b8\u30f3\u304c\u65b0\u3057\u3044\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3084\u5236\u7d04\u3092\u6b63\u3057\u304f\u5229\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u30eb\u30fc\u30d7\u306b\u3088\u308a\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30b5\u30a4\u30af\u30eb\u304c\u5b8c\u4e86\u3057\u3001ERD\u4e0a\u306e\u7406\u8ad6\u7684\u306a\u6539\u5584\u304c\u30e9\u30a4\u30d6\u74b0\u5883\u3067\u306e\u5b9f\u969b\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u306b\u7d50\u3073\u3064\u304f\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u3001\u554f\u984c\u304c\u6df1\u523b\u306a\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1645,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_title":"ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22","_yoast_wpseo_metadesc":"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[68],"tags":[89,92],"class_list":["post-1644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-design","tag-academic","tag-erd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22<\/title>\n<meta name=\"description\" content=\"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22\" \/>\n<meta property=\"og:description\" content=\"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\" \/>\n<meta property=\"og:site_name\" content=\"Viz Note Japanese - AI Insights &amp; Software Industry Updates\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-09T02:30:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1664\" \/>\n\t<meta property=\"og:image:height\" content=\"928\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"vpadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"vpadmin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\"},\"author\":{\"name\":\"vpadmin\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/#\/schema\/person\/d69595112293b803501f7b381be28255\"},\"headline\":\"\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u4e0d\u826f\u306a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad\",\"datePublished\":\"2026-04-09T02:30:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\"},\"wordCount\":74,\"publisher\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg\",\"keywords\":[\"academic\",\"erd\"],\"articleSection\":[\"Database Design\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\",\"url\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\",\"name\":\"ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22\",\"isPartOf\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg\",\"datePublished\":\"2026-04-09T02:30:54+00:00\",\"description\":\"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage\",\"url\":\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg\",\"contentUrl\":\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg\",\"width\":1664,\"height\":928},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.viz-note.com\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u4e0d\u826f\u306a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/#website\",\"url\":\"https:\/\/www.viz-note.com\/ja\/\",\"name\":\"Viz Note Japanese - AI Insights &amp; Software Industry Updates\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.viz-note.com\/ja\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/#organization\",\"name\":\"Viz Note Japanese - AI Insights &amp; Software Industry Updates\",\"url\":\"https:\/\/www.viz-note.com\/ja\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/cropped-viz-note-logo.png\",\"contentUrl\":\"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/cropped-viz-note-logo.png\",\"width\":512,\"height\":512,\"caption\":\"Viz Note Japanese - AI Insights &amp; Software Industry Updates\"},\"image\":{\"@id\":\"https:\/\/www.viz-note.com\/ja\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/#\/schema\/person\/d69595112293b803501f7b381be28255\",\"name\":\"vpadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.viz-note.com\/ja\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g\",\"caption\":\"vpadmin\"},\"sameAs\":[\"https:\/\/www.viz-note.com\"],\"url\":\"https:\/\/www.viz-note.com\/ja\/author\/vpadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22","description":"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/","og_locale":"ja_JP","og_type":"article","og_title":"ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22","og_description":"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/","og_site_name":"Viz Note Japanese - AI Insights &amp; Software Industry Updates","article_published_time":"2026-04-09T02:30:54+00:00","og_image":[{"width":1664,"height":928,"url":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg","type":"image\/jpeg"}],"author":"vpadmin","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"vpadmin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#article","isPartOf":{"@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/"},"author":{"name":"vpadmin","@id":"https:\/\/www.viz-note.com\/ja\/#\/schema\/person\/d69595112293b803501f7b381be28255"},"headline":"\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u4e0d\u826f\u306a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad","datePublished":"2026-04-09T02:30:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/"},"wordCount":74,"publisher":{"@id":"https:\/\/www.viz-note.com\/ja\/#organization"},"image":{"@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage"},"thumbnailUrl":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg","keywords":["academic","erd"],"articleSection":["Database Design"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/","url":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/","name":"ERD\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u3088\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad \ud83d\udc22","isPartOf":{"@id":"https:\/\/www.viz-note.com\/ja\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage"},"image":{"@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage"},"thumbnailUrl":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg","datePublished":"2026-04-09T02:30:54+00:00","description":"\u60aa\u3044\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u3092\u8a3a\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002ERD\u3092\u5206\u6790\u3057\u3066\u6b63\u898f\u5316\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u95a2\u4fc2\u6027\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u9069\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#primaryimage","url":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg","contentUrl":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/04\/erd-troubleshooting-infographic-charcoal-sketch.jpg","width":1664,"height":928},{"@type":"BreadcrumbList","@id":"https:\/\/www.viz-note.com\/ja\/erd-troubleshooting-slow-query-schema-design\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.viz-note.com\/ja\/"},{"@type":"ListItem","position":2,"name":"\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a\u4e0d\u826f\u306a\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u8d77\u56e0\u3059\u308b\u9045\u5ef6\u30af\u30a8\u30ea\u306e\u8a3a\u65ad"}]},{"@type":"WebSite","@id":"https:\/\/www.viz-note.com\/ja\/#website","url":"https:\/\/www.viz-note.com\/ja\/","name":"Viz Note Japanese - AI Insights &amp; Software Industry Updates","description":"","publisher":{"@id":"https:\/\/www.viz-note.com\/ja\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.viz-note.com\/ja\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.viz-note.com\/ja\/#organization","name":"Viz Note Japanese - AI Insights &amp; Software Industry Updates","url":"https:\/\/www.viz-note.com\/ja\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.viz-note.com\/ja\/#\/schema\/logo\/image\/","url":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/cropped-viz-note-logo.png","contentUrl":"https:\/\/www.viz-note.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/cropped-viz-note-logo.png","width":512,"height":512,"caption":"Viz Note Japanese - AI Insights &amp; Software Industry Updates"},"image":{"@id":"https:\/\/www.viz-note.com\/ja\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.viz-note.com\/ja\/#\/schema\/person\/d69595112293b803501f7b381be28255","name":"vpadmin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.viz-note.com\/ja\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g","caption":"vpadmin"},"sameAs":["https:\/\/www.viz-note.com"],"url":"https:\/\/www.viz-note.com\/ja\/author\/vpadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/posts\/1644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/comments?post=1644"}],"version-history":[{"count":0,"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/posts\/1644\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/media\/1645"}],"wp:attachment":[{"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/media?parent=1644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/categories?post=1644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.viz-note.com\/ja\/wp-json\/wp\/v2\/tags?post=1644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}