
{"id":1478,"date":"2014-03-04T23:21:26","date_gmt":"2014-03-04T14:21:26","guid":{"rendered":"http:\/\/a23187.yorozuyah.com\/blog\/?p=1478"},"modified":"2014-09-15T18:35:55","modified_gmt":"2014-09-15T09:35:55","slug":"hammerdb%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6mysql%e3%81%a7tpc-h%e3%81%ae%e3%82%af%e3%82%a8%e3%83%aa%e3%82%92%e6%b5%81%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/a23187.yorozuyah.com\/blog\/?p=1478","title":{"rendered":"HammerDB\u3092\u4f7f\u3063\u3066MySQL\u3067TPC-H\u306e\u30af\u30a8\u30ea\u3092\u6d41\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u8a00\u308f\u305a\u3068\u77e5\u308c\u305fTPC-C\u304cOLTP\u306e\u6027\u80fd\u6307\u6a19\u3068\u306a\u308b\u306e\u3067\u3042\u308c\u3070\u3001TPC-H\u306fDSS\u306e\u6307\u6a19\u3068\u306a\u308b\u3082\u306e\u3002<\/p>\n<p>10\u5e74\u307b\u3069\u524d\u306e\u65b0\u5165\u793e\u54e1\u306e\u3053\u308d\u306bMySQL4.1\u3067\u7121\u7406\u77e2\u7406TPC-H\u306e\u30af\u30a8\u30ea\u3092\u52d5\u304b\u3057\u305f\u3082\u306e\u306e\u3001\u7d50\u679c\u304c\u8fd4\u3063\u3066\u3053\u306a\u3044\uff08\u6642\u9593\u304c\u304b\u304b\u308a\u3059\u304e\u308b\uff09\u3053\u3068\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3069\u3046\u304b\u3068\u601d\u3044\u3001\u4e45\u3057\u3076\u308a\u306b\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>IPA\u306e\u5831\u544a\u66f8\u306a\u3069\u3001TPC-H\u306e\u5b9f\u88c5\u3067\u3042\u308bDBT3\u3092\u5b9f\u65bd\u3057\u305f\u30ec\u30dd\u30fc\u30c8\u306f\u30cd\u30c3\u30c8\u4e0a\u3067\u3082\u3042\u3063\u305f\u306e\u3067\u53c2\u8003\u306b\u3057\u306a\u304c\u3089\u81ea\u5206\u3067\u4f5c\u308d\u3046\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001HammerDB\u306a\u308b\u3082\u306e\u304c\u3042\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3001\u6a2a\u7740\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>HammerDB\u306f\u6570\u7a2e\u985e\u306eDBMS\u306b\u5bfe\u3057\u3066\u3001TPC-C\u3084TPC-H\u306b\u57fa\u3065\u3044\u305f\u8a66\u9a13\u3092\u884c\u3048\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a title=\"HammerDB\" href=\"http:\/\/hammerora.sourceforge.net\/\" target=\"_blank\">http:\/\/hammerora.sourceforge.net\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>DBMS\u306fMySQL\u3084PostgreSQL\u3060\u3051\u3067\u306a\u304f\u3001Oracle\u3084SQL Server\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u308b\u306a\u3069\u3001\u7c21\u5358\u306b\u6bd4\u8f03\u3059\u308b\u306e\u306b\u3082\u4fbf\u5229\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><span style=\"font-size: 13px;\">Times Ten\u3068\u304bredis\u3068\u304b\u3067\u3082\u4f7f\u3048\u308b\u3063\u3066\u306e\u304c\u73cd\u3057\u3044\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>web\u5411\u3051\u306e\u30c6\u30b9\u30c8\u3084\u3001<span style=\"font-size: 13px;\">\u8907\u6570\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u8ca0\u8377\u304c\u3051\u306a\u3093\u304b\u3082\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u898b\u308b\u3068\u3001MySQL\u306f<span style=\"font-size: 13px;\">5.6\u5411\u3051\u3067\u306f\u3042\u308b\u6a21\u69d8<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"background-color: #ccffff;\"><strong><em>HammerDB version 2.16 has been built and tested against a MySQL 5.6 client installation. On Linux this <\/em><\/strong><\/span><br \/>\n<span style=\"background-color: #ccffff;\"><strong><em>means that HammerDB will require a MySQL client library called libmysqlclient.so.18. T<\/em><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u306f\u65e9\u901f\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5f8c\u306b\u5b9f\u884c\u3059\u308b\u3060\u3051\u3002<\/p>\n<div class=\"command\">\n<p><span style=\"font-size: 13px;\">$ chmod +x HammerDB-2.16-Linux-x86-64-Install HammerDB-2.16-Linux-x86-64-Install<\/span><\/p>\n<p><span style=\"font-size: 13px;\">$ .\/HammerDB-2.16-Linux-x86-64-Install\u00a0<\/span><span style=\"font-size: 13px;\">\u00a0<\/span><\/p>\n<p>This will install HammerDB on your computer.\u00a0 Continue? [n\/Y] y<\/p>\n<p>Where do you want to install HammerDB? [\/home\/XXXXX\/HammerDB-2.16]<\/p>\n<p>&nbsp;<\/p>\n<p>Installing HammerDB&#8230;<\/p>\n<p>Installing Program Files&#8230;<\/p>\n<p>Installation complete.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>\u3068SSH\u3067\u3064\u306a\u3044\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u5b9f\u884c\u3057\u305f\u3082\u306e\u306e\u3001tcl\u30d9\u30fc\u30b9\u306eGUI\u5229\u7528\u524d\u63d0\u3060\u3063\u305f\u3082\u3088\u3046\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001gnome\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u540c\u3058\u3053\u3068\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3068\u3053\u308d\u3001GUI\u304c\u8d77\u52d5\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3055\u3066\u3001\u30c6\u30b9\u30c8\u3092\u884c\u3046\u524d\u306b\u3001\u30c7\u30fc\u30bf\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u305d\u3053\u304b\u3089\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1480\" title=\"2014-03-01 23.21.47\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.21.47.png\" alt=\"\" width=\"280\" height=\"148\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Options &gt; Benchmark<\/p>\n<p>\u304b\u3089MySQL\u306eTPC-H\u3092\u9078\u629e\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306bTPC-H\u306e\u30c7\u30fc\u30bf\u30ed\u30fc\u30c9\u7528\u306b\u63a5\u7d9a\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1481\" title=\"2014-03-01 23.22.19\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.22.19.png\" alt=\"\" width=\"254\" height=\"143\" \/><\/p>\n<p>Options \u00a0&gt; TPC-H Schema &gt; Build and Driver \u3092\u9078\u629e<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u5404\u7a2e\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>root\u306ePassowrd\u306f\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u7a7a\u6b04\u306b\u3057\u3066\u305f\u3089\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u30fb\u30fb\u306e\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fc5\u9808\u3002<\/p>\n<p>\u8a66\u3057\u3066\u306f\u3044\u306a\u3044\u3067\u3059\u304c\u3001Database\u306f\u624b\u52d5\u3067\u4f5c\u3063\u3066\u304a\u304b\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u304b\u3082\u3002<\/p>\n<p>\u3042\u3068\u3001Storage Engine\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068MyISAM\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001InnoDB\u306b\u5909\u66f4\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>Scale Factor\u306f\u304a\u8a66\u3057\u30671\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<div><\/div>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.22.48.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1482\" title=\"2014-03-01 23.22.48\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.22.48.png\" alt=\"\" width=\"374\" height=\"333\" srcset=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.22.48.png 374w, https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.22.48-300x267.png 300w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001Create TPC Schema\u3068\u8868\u793a\u304c\u51fa\u308b\u3001\u4f55\u304b\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068<\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.23.14.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1483\" title=\"2014-03-01 23.23.14\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.23.14.png\" alt=\"\" width=\"238\" height=\"48\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 13px;\">\u3000<\/span><\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.23.26.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1484\" title=\"2014-03-01 23.23.26\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.23.26.png\" alt=\"\" width=\"257\" height=\"128\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 13px;\">\u3000\u8a2d\u5b9a\u5185\u5bb9\u306e\u518d\u78ba\u8a8d\u304c\u51fa\u3066\u3001Yes\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>CREATE TABLE\u304b\u3089\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f5c\u6210\u3001\u30c7\u30fc\u30bf\u30ed\u30fc\u30c9\u307e\u3067\u5168\u81ea\u52d5\u3067\u306a\u304b\u306a\u304b\u697d\u3067\u3059\u3002<\/p>\n<p><span style=\"font-size: 13px;\">\u30cf\u30fc\u30c9\u30b9\u30da\u30c3\u30af\u306b\u3082\u3088\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u30011.5\u6642\u9593\u7a0b\u5ea6\u306f\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>buffer_pool\u304f\u3089\u3044\u3057\u304b\u8a2d\u5b9a\u5909\u3048\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3059\u308c\u3070\u3082\u3046\u5c11\u3057\u65e9\u304f\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 13px;\">\u00a0<\/span><\/p>\n<p>\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3059\u308c\u3070\u3044\u3088\u3044\u3088\u3001\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.24.13.png\"><img decoding=\"async\" class=\" wp-image-1485 alignleft\" title=\"2014-03-01 23.24.13\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.24.13.png\" alt=\"\" width=\"256\" height=\"147\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Options &gt; TPC-H Schema &gt; Load Driver Script \u3092\u9078\u629e\u3057\u3001\u30c6\u30b9\u30c8\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30ed\u30fc\u30c9\uff1f\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u6570\u3092\u6e2c\u5b9a\u3059\u308b\u305f\u3081\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u306a\u308b\u3082\u306e\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\" wp-image-1486 alignleft\" title=\"2014-03-01 23.24.44\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.24.44.png\" alt=\"\" width=\"136\" height=\"146\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Options &gt; TPC-H Schema &gt; Transaction Counter \u3092\u9078\u629e<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.04.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1487\" title=\"2014-03-01 23.25.04\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.04.png\" alt=\"\" width=\"316\" height=\"159\" srcset=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.04.png 316w, https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.04-300x150.png 300w\" sizes=\"(max-width: 316px) 100vw, 316px\" \/><\/a><\/p>\n<p>\u3053\u3053\u3082\u540c\u69d8\u306b\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>Refresh Rate\u3092\u77ed\u304f\u3059\u308b\u3068\u3001\u305f\u3044\u3057\u305f\u3082\u306e\u3067\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u82e5\u5e72DB\u3078\u306e\u30a2\u30af\u30bb\u30b9\u983b\u5ea6\u304c\u5897\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u5fc5\u8981\u4ee5\u4e0a\u306b\u77ed\u304f\u3057\u306a\u304f\u3066\u3082\u826f\u3044\u304b\u3068\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u4f55\u3084\u3089\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u8d64\u3044\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u4e0b\u306e\u30da\u30a4\u30f3\u306b\u3001Virtual User\u304c\u767b\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u8907\u6570\u306e\u30e6\u30fc\u30b6\u304b\u3089\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u3053\u3053\u306b\u8907\u6570\u30e6\u30fc\u30b6\u3092\u767b\u9332\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.41.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1488\" title=\"2014-03-01 23.25.41\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.41.png\" alt=\"\" width=\"598\" height=\"385\" srcset=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.41.png 598w, https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.25.41-300x193.png 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/p>\n<p><span style=\"font-size: 13px;\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 13px;\">\u305d\u3057\u3066\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3089\u3057\u3044\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u30af\u30a8\u30ea\u304c\u6d41\u308c\u59cb\u3081\u307e\u3059\u3002<\/span><span style=\"font-size: 13px;\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.26.10.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1489\" title=\"2014-03-01 23.26.10\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.26.10.png\" alt=\"\" width=\"278\" height=\"65\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u3068\u304d\u306b\u3001\u307e\u305f\u4f55\u304b\u826f\u304f\u308f\u304b\u3089\u306a\u3044\u53f3\u306e\u65b9\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u6570\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"font-size: 13px;\">\u00a0qph\u306f\u300cquery per hour\u300d\u306e\u7565\u3067\u3001\u305d\u306e\u540d\u306e\u901a\u308a1\u6642\u9593\u63db\u7b97\u306e\u30af\u30a8\u30ea\u5b9f\u884c\u6570\u3067\u3059\u3002<\/span><\/p>\n<p>\uff08\u8ffd\u8a18\uff09<\/p>\n<p>********************************************************************<\/p>\n<p>\u3069\u3046\u3084\u3089\u5358\u7d14\u306b1\u6642\u9593\u306e\u30af\u30a8\u30ea\u6570\u3067\u3082\u7121\u3044\u3088\u3046\u3067\u3001\u3053\u3061\u3089\u306b\u30b5\u30a4\u30c8\u306b\u7d39\u4ecb\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/www.insight-tec.com\/technical-information\/tpc-h-qphh%E3%81%AF%E3%81%A9%E3%81%86%E3%82%84%E3%81%A3%E3%81%A6%E8%A8%88%E7%AE%97%E3%81%99%E3%82%8B%E3%81%AE%E3%81%8B.html\">[TPC-H] QphH\u306f\u3069\u3046\u3084\u3063\u3066\u8a08\u7b97\u3059\u308b\u306e\u304b\u77e5\u3063\u3066\u307e\u3059\u304b?<\/a><\/p>\n<p>********************************************************************<\/p>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1490\" title=\"2014-03-01 23.28.41\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.28.41.png\" alt=\"\" width=\"439\" height=\"241\" srcset=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.28.41.png 439w, https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.28.41-300x164.png 300w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u5fdcprocesslist\u3092\u78ba\u8a8d<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.26.47.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-1491\" title=\"2014-03-01 23.26.47\" src=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.26.47.png\" alt=\"\" width=\"583\" height=\"117\" srcset=\"https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.26.47.png 583w, https:\/\/a23187.yorozuyah.com\/blog\/wp-content\/uploads\/2014\/03\/2014-03-01-23.26.47-300x60.png 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 13px;\">\u52d5\u3044\u3066\u308b\u3063\u307d\u3044\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u3067TPC-H\u3092\u5143\u306b\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u500b\u4eba\u7684\u306b\u306fqph\u3088\u308a\u3082\u5404\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u6642\u9593\u304c\u77e5\u308a\u305f\u3044\u306e\u3067\u3001general_log\u3092\u51fa\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<div class=\"command\">\n<p>\/usr\/sbin\/mysqld, Version: 5.6.16-log (MySQL Community Server (GPL)). started with:<\/p>\n<p>Tcp port: 3306\u00a0 Unix socket: \/data\/mysql\/mysql.sock<\/p>\n<p>Time \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Id Command\u00a0 \u00a0 Argument<\/p>\n<p># Time: 140302\u00a0 7:40:56<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 1.932741\u00a0 Lock_time: 0.000281 Rows_sent: 100\u00a0 Rows_examined: 648306<\/p>\n<p>use tpch;<\/p>\n<p>SET timestamp=1393713656;<\/p>\n<p>select s_name, count(*) as numwait from SUPPLIER, LINEITEM l1, ORDERS, NATION where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = &#8216;F&#8217; and l1.l_receiptdate &gt; l1.l_commitdate and exists ( select * from LINEITEM l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey &lt;&gt; l1.l_suppkey) and not exists ( select * from LINEITEM l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey &lt;&gt; l1.l_suppkey and l3.l_receiptdate &gt; l3.l_commitdate) and s_nationkey = n_nationkey and n_name = &#8216;CHINA&#8217; group by s_name order by numwait desc, s_name limit 100;<\/p>\n<p># Time: 140302\u00a0 7:40:58<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 2.233532\u00a0 Lock_time: 0.000180 Rows_sent: 10\u00a0 Rows_examined: 2830403<\/p>\n<p>SET timestamp=1393713658;<\/p>\n<p>select l_orderkey, sum(l_extendedprice * (1 &#8211; l_discount)) as revenue, o_orderdate, o_shippriority from CUSTOMER, ORDERS, LINEITEM where c_mktsegment = &#8216;HOUSEHOLD&#8217; and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate &lt; date &#8216;1995-03-16&#8217; and l_shipdate &gt; date &#8216;1995-03-16&#8217; group by l_orderkey, o_orderdate, o_shippriority order by revenue desc, o_orderdate limit 10;<\/p>\n<p># Time: 140302\u00a0 7:41:03<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 4.689517\u00a0 Lock_time: 0.000191 Rows_sent: 8\u00a0 Rows_examined: 7651587<\/p>\n<p>SET timestamp=1393713663;<\/p>\n<p>select c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity) from CUSTOMER, ORDERS, LINEITEM where o_orderkey in ( select l_orderkey from LINEITEM group by l_orderkey having sum(l_quantity) &gt; 312) and c_custkey = o_custkey and o_orderkey = l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice order by o_totalprice desc, o_orderdate limit 100;<\/p>\n<p># Time: 140302\u00a0 7:41:04<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.817588\u00a0 Lock_time: 0.000205 Rows_sent: 4\u00a0 Rows_examined: 560132<\/p>\n<p>SET timestamp=1393713664;<\/p>\n<p>select n_name, sum(l_extendedprice * (1 &#8211; l_discount)) as revenue from CUSTOMER, ORDERS, LINEITEM, SUPPLIER, NATION, REGION where c_custkey = o_custkey and l_orderkey = o_orderkey and l_suppkey = s_suppkey and c_nationkey = s_nationkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &#8216;MIDDLE EAST&#8217; and o_orderdate &gt;= date &#8216;1996-01-01&#8217; and o_orderdate &lt; date &#8216;1996-01-01&#8217; + interval &#8216;1&#8217; year group by n_name order by revenue desc;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.107374\u00a0 Lock_time: 0.000203 Rows_sent: 1038\u00a0 Rows_examined: 94397<\/p>\n<p>SET timestamp=1393713664;<\/p>\n<p>select ps_partkey, sum(ps_supplycost * ps_availqty) as value from PARTSUPP, SUPPLIER, NATION where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = &#8216;ETHIOPIA&#8217; group by ps_partkey having sum(ps_supplycost * ps_availqty) &gt; ( select sum(ps_supplycost * ps_availqty) * 0.0001000000 from PARTSUPP, SUPPLIER, NATION where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = &#8216;ETHIOPIA&#8217;) order by value desc;<\/p>\n<p># Time: 140302\u00a0 7:41:06<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 1.506114\u00a0 Lock_time: 0.000250 Rows_sent: 4\u00a0 Rows_examined: 909683<\/p>\n<p>SET timestamp=1393713666;<\/p>\n<p>select supp_nation, cust_nation, l_year, sum(volume) as revenue from ( select n1.n_name as supp_nation, n2.n_name as cust_nation, extract(year from l_shipdate) as l_year, l_extendedprice * (1 &#8211; l_discount) as volume from SUPPLIER, LINEITEM, ORDERS, CUSTOMER, NATION n1, NATION n2 where s_suppkey = l_suppkey and o_orderkey = l_orderkey and c_custkey = o_custkey and s_nationkey = n1.n_nationkey and c_nationkey = n2.n_nationkey and ( (n1.n_name = &#8216;ETHIOPIA&#8217; and n2.n_name = &#8216;CHINA&#8217;) or (n1.n_name = &#8216;CHINA&#8217; and n2.n_name = &#8216;ETHIOPIA&#8217;)) and l_shipdate between date &#8216;1995-01-01&#8217; and date &#8216;1996-12-31&#8217;) shipping group by supp_nation, cust_nation, l_year order by supp_nation, cust_nation, l_year;<\/p>\n<p># Time: 140302\u00a0 7:41:08<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 2.492662\u00a0 Lock_time: 0.000152 Rows_sent: 1\u00a0 Rows_examined: 6001515<\/p>\n<p>SET timestamp=1393713668;<\/p>\n<p>select sum(l_extendedprice * l_discount) as revenue from LINEITEM where l_shipdate &gt;= date &#8216;1995-01-01&#8217; and l_shipdate &lt; date &#8216;1995-01-01&#8217; + interval &#8216;1&#8217; year and l_discount between 0.06 &#8211; 0.01 and 0.06 + 0.01 and l_quantity &lt; 24;<\/p>\n<p># Time: 140302\u00a0 7:41:09<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.936907\u00a0 Lock_time: 0.000212 Rows_sent: 82\u00a0 Rows_examined: 257367<\/p>\n<p>SET timestamp=1393713669;<\/p>\n<p>select s_name, s_address from SUPPLIER, NATION where s_suppkey in ( select ps_suppkey from PARTSUPP where ps_partkey in ( select p_partkey from PART where p_name like &#8216;dark%&#8217;) and ps_availqty &gt; ( select 0.5 * sum(l_quantity) from LINEITEM where l_partkey = ps_partkey and l_suppkey = ps_suppkey and l_shipdate &gt;= date &#8216;1994-01-01&#8217; and l_shipdate &lt; date &#8216;1994-01-01&#8217; + interval &#8216;1&#8217; year)) and s_nationkey = n_nationkey and n_name = &#8216;EGYPT&#8217; order by s_name;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.395880\u00a0 Lock_time: 0.000173 Rows_sent: 1\u00a0 Rows_examined: 389326<\/p>\n<p>SET timestamp=1393713669;<\/p>\n<p>select sum(l_extendedprice) \/ 7.0 as avg_yearly from LINEITEM, PART where p_partkey = l_partkey and p_brand = &#8216;Brand#35&#8217; and p_container = &#8216;JUMBO BOX&#8217; and l_quantity &lt; ( select 0.2 * avg(l_quantity) from LINEITEM where l_partkey = p_partkey);<\/p>\n<p># Time: 140302\u00a0 7:41:12<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 2.623498\u00a0 Lock_time: 0.000199 Rows_sent: 2\u00a0 Rows_examined: 6032625<\/p>\n<p>SET timestamp=1393713672;<\/p>\n<p>select l_shipmode, sum(case when o_orderpriority = &#8216;1-URGENT&#8217; or o_orderpriority = &#8216;2-HIGH&#8217; then 1 else 0 end) as high_line_count, sum(case when o_orderpriority &lt;&gt; &#8216;1-URGENT&#8217; and o_orderpriority &lt;&gt; &#8216;2-HIGH&#8217; then 1 else 0 end) as low_line_count from ORDERS, LINEITEM where o_orderkey = l_orderkey and l_shipmode in (&#8216;FOB&#8217;, &#8216;TRUCK&#8217;) and l_commitdate &lt; l_receiptdate and l_shipdate &lt; l_commitdate and l_receiptdate &gt;= date &#8216;1994-01-01&#8217; and l_receiptdate &lt; date &#8216;1994-01-01&#8217; + interval &#8216;1&#8217; year group by l_shipmode order by l_shipmode;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.345243\u00a0 Lock_time: 0.000189 Rows_sent: 18261\u00a0 Rows_examined: 395717<\/p>\n<p>SET timestamp=1393713672;<\/p>\n<p>select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt from PARTSUPP, PART where p_partkey = ps_partkey and p_brand &lt;&gt; &#8216;Brand#31&#8217; and p_type not like &#8216;STANDARD BRUSHED%&#8217; and p_size in (27, 8, 32, 37, 13, 46, 31, 5) and ps_suppkey not in ( select s_suppkey from SUPPLIER where s_comment like &#8216;%Customer%Complaints%&#8217;) group by p_brand, p_type, p_size order by supplier_cnt desc, p_brand, p_type, p_size;<\/p>\n<p># Time: 140302\u00a0 7:41:14<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 1.955579\u00a0 Lock_time: 0.000463 Rows_sent: 1\u00a0 Rows_examined: 510249<\/p>\n<p>SET timestamp=1393713674;<\/p>\n<p>select s_suppkey, s_name, s_address, s_phone, total_revenue from SUPPLIER, revenue0 where s_suppkey = supplier_no and total_revenue = ( select max(total_revenue) from revenue0) order by s_suppkey;<\/p>\n<p># Time: 140302\u00a0 7:41:17<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 2.497492\u00a0 Lock_time: 0.000180 Rows_sent: 32\u00a0 Rows_examined: 1850065<\/p>\n<p>SET timestamp=1393713677;<\/p>\n<p>select c_count, count(*) as custdist from ( select c_custkey as c_custkey, count(o_orderkey) as c_count from CUSTOMER left outer join ORDERS on c_custkey = o_custkey and o_comment not like &#8216;%unusual%accounts%&#8217; group by c_custkey) as c_orders group by c_count order by custdist desc, c_count desc;<\/p>\n<p># Time: 140302\u00a0 7:41:18<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.956482\u00a0 Lock_time: 0.000206 Rows_sent: 20\u00a0 Rows_examined: 406925<\/p>\n<p>SET timestamp=1393713678;<\/p>\n<p>select c_custkey, c_name, sum(l_extendedprice * (1 &#8211; l_discount)) as revenue, c_acctbal, n_name, c_address, c_phone, c_comment from CUSTOMER, ORDERS, LINEITEM, NATION where c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate &gt;= date &#8216;1993-02-01&#8217; and o_orderdate &lt; date &#8216;1993-02-01&#8217; + interval &#8216;3&#8217; month and l_returnflag = &#8216;R&#8217; and c_nationkey = n_nationkey group by c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment order by revenue desc limit 20;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.411825\u00a0 Lock_time: 0.000232 Rows_sent: 100\u00a0 Rows_examined: 336528<\/p>\n<p>SET timestamp=1393713678;<\/p>\n<p>select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from PART, SUPPLIER, PARTSUPP, NATION, REGION where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 17 and p_type like &#8216;%STEEL&#8217; and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &#8216;EUROPE&#8217; and ps_supplycost = ( select min(ps_supplycost) from PARTSUPP, SUPPLIER, NATION, REGION where p_partkey = ps_partkey and s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &#8216;EUROPE&#8217;) order by s_acctbal desc, n_name, s_name, p_partkey limit 100;<\/p>\n<p># Time: 140302\u00a0 7:41:20<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 1.675488\u00a0 Lock_time: 0.000264 Rows_sent: 2\u00a0 Rows_examined: 1786223<\/p>\n<p>SET timestamp=1393713680;<\/p>\n<p>select o_year, sum(case when NATION = &#8216;CHINA&#8217; then volume else 0 end) \/ sum(volume) as mkt_share from ( select extract(year from o_orderdate) as o_year, l_extendedprice * (1 &#8211; l_discount) as volume, n2.n_name as NATION from PART, SUPPLIER, LINEITEM, ORDERS, CUSTOMER, NATION n1, NATION n2, REGION where p_partkey = l_partkey and s_suppkey = l_suppkey and l_orderkey = o_orderkey and o_custkey = c_custkey and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey and r_name = &#8216;ASIA&#8217; and s_nationkey = n2.n_nationkey and o_orderdate between date &#8216;1995-01-01&#8217; and date &#8216;1996-12-31&#8217; and p_type = &#8216;PROMO ANODIZED COPPER&#8217;) all_nations group by o_year order by o_year;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.279161\u00a0 Lock_time: 0.000174 Rows_sent: 1\u00a0 Rows_examined: 149926<\/p>\n<p>SET timestamp=1393713680;<\/p>\n<p>select 100.00 * sum(case when p_type like &#8216;PROMO%&#8217; then l_extendedprice * (1 &#8211; l_discount) else 0 end) \/ sum(l_extendedprice * (1 &#8211; l_discount)) as promo_revenue from LINEITEM, PART where l_partkey = p_partkey and l_shipdate &gt;= date &#8216;1996-04-01&#8217; and l_shipdate &lt; date &#8216;1996-04-01&#8217; + interval &#8216;1&#8217; month;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.129972\u00a0 Lock_time: 0.000217 Rows_sent: 1\u00a0 Rows_examined: 215907<\/p>\n<p>SET timestamp=1393713680;<\/p>\n<p>select sum(l_extendedprice* (1 &#8211; l_discount)) as revenue from LINEITEM, PART where ( p_partkey = l_partkey and p_brand = &#8216;Brand#31&#8217; and p_container in (&#8216;SM CASE&#8217;, &#8216;SM BOX&#8217;, &#8216;SM PACK&#8217;, &#8216;SM PKG&#8217;) and l_quantity &gt;= 10 and l_quantity &lt;= 10 + 10 and p_size between 1 and 5 and l_shipmode in (&#8216;AIR&#8217;, &#8216;AIR REG&#8217;) and l_shipinstruct = &#8216;DELIVER IN PERSON&#8217;) or ( p_partkey = l_partkey and p_brand = &#8216;Brand#42&#8217; and p_container in (&#8216;MED BAG&#8217;, &#8216;MED BOX&#8217;, &#8216;MED PKG&#8217;, &#8216;MED PACK&#8217;) and l_quantity &gt;= 19 and l_quantity &lt;= 19 + 10 and p_size between 1 and 10 and l_shipmode in (&#8216;AIR&#8217;, &#8216;AIR REG&#8217;) and l_shipinstruct = &#8216;DELIVER IN PERSON&#8217;) or ( p_partkey = l_partkey and p_brand = &#8216;Brand#25&#8217; and p_container in (&#8216;LG CASE&#8217;, &#8216;LG BOX&#8217;, &#8216;LG PACK&#8217;, &#8216;LG PKG&#8217;) and l_quantity &gt;= 29 and l_quantity &lt;= 29 + 10 and p_size between 1 and 15 and l_shipmode in (&#8216;AIR&#8217;, &#8216;AIR REG&#8217;) and l_shipinstruct = &#8216;DELIVER IN PERSON&#8217;);<\/p>\n<p># Time: 140302\u00a0 7:41:24<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 3.396313\u00a0 Lock_time: 0.000234 Rows_sent: 175\u00a0 Rows_examined: 2575076<\/p>\n<p>SET timestamp=1393713684;<\/p>\n<p>select nation, o_year, sum(amount) as sum_profit from ( select n_name as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 &#8211; l_discount) &#8211; ps_supplycost * l_quantity as amount from PART, SUPPLIER, LINEITEM, PARTSUPP, ORDERS, NATION where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like &#8216;%cornflower%&#8217;) profit group by nation, o_year order by nation, o_year desc;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.145015\u00a0 Lock_time: 0.000234 Rows_sent: 7\u00a0 Rows_examined: 305314<\/p>\n<p>SET timestamp=1393713684;<\/p>\n<p>select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substr(c_phone, 1, 2) as cntrycode, c_acctbal from CUSTOMER where substr(c_phone, 1, 2) in (&#8217;32&#8217;, &#8217;34&#8217;, &#8217;11&#8217;, &#8217;12&#8217;, &#8217;13&#8217;, &#8217;33&#8217;, &#8217;28&#8217;) and c_acctbal &gt; ( select avg(c_acctbal) from CUSTOMER where c_acctbal &gt; 0.00 and substr(c_phone, 1, 2) in (&#8217;32&#8217;, &#8217;34&#8217;, &#8217;11&#8217;, &#8217;12&#8217;, &#8217;13&#8217;, &#8217;33&#8217;, &#8217;28&#8217;)) and not exists ( select * from ORDERS where o_custkey = c_custkey)) custsale group by cntrycode order by cntrycode;<\/p>\n<p># Time: 140302\u00a0 7:41:41<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 16.831948\u00a0 Lock_time: 0.000181 Rows_sent: 4\u00a0 Rows_examined: 6001523<\/p>\n<p>SET timestamp=1393713701;<\/p>\n<p>select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 &#8211; l_discount)) as sum_disc_price, sum(l_extendedprice * (1 &#8211; l_discount) * (1 + l_tax)) as sum_charge, avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) as count_order from LINEITEM where l_shipdate &lt;= date &#8216;1998-12-01&#8217; &#8211; interval &#8216;109&#8217; day group by l_returnflag, l_linestatus order by l_returnflag, l_linestatus;<\/p>\n<p># User@Host: root[root] @ localhost [127.0.0.1]\u00a0 Id:\u00a0 \u00a0 70<\/p>\n<p># Query_time: 0.454927\u00a0 Lock_time: 0.000172 Rows_sent: 5\u00a0 Rows_examined: 140720<\/p>\n<p>SET timestamp=1393713701;<\/p>\n<p>select o_orderpriority, count(*) as order_count from ORDERS where o_orderdate &gt;= date &#8216;1993-03-01&#8217; and o_orderdate &lt; date &#8216;1993-03-01&#8217; + interval &#8216;3&#8217; month and exists ( select * from LINEITEM where l_orderkey = o_orderkey and l_commitdate &lt; l_receiptdate) group by o_orderpriority order by o_orderpriority;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>MySQL\u3067\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306f\u3001TPC-H\u3067\u3042\u308c\u3070general_log\u3092\u6709\u52b9\u306b\u3057\u305f\u65b9\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002general_log\u306e\u66f8\u304d\u8fbc\u307f\u306f\u30af\u30a8\u30ea\u5b9f\u884c\u306b\u6bd4\u8f03\u3059\u308b\u3068\u975e\u5e38\u306b\u77ed\u3044\u306e\u3067\u3001\u8aa4\u5dee\u30ec\u30d9\u30eb\u3067\u3057\u3087\u3046\u3002\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u91cf\u304c\u5c11\u306a\u3044\u306e\u3067\u3001\u3069\u306e\u30af\u30a8\u30ea\u3082\u7121\u96e3\u306a\u6642\u9593\u3067\u5b8c\u4e86\u3057\u3066\u307e\u3059\u304c\u3001Scale Factor\u3092\u5927\u304d\u304f\u3057\u305f\u3068\u304d\u306b\u3069\u3046\u306a\u308b\u304b\u306f\u5225\u9014\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u4e00\u901a\u308a\u3001TPC-H\u306e\u30af\u30a8\u30ea\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"font-size: 13px;\">\u00a0TPC-C\u306f\u78ba\u8a8d\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u540c\u3058\u624b\u9806\u3067\u5927\u4e08\u592b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u601d\u3063\u305f\u3088\u308a\u3082HammerDB\u304c\u3001\u4fbf\u5229\u305d\u3046\u306a\u306e\u3067\u3082\u3046\u5c11\u3057\u4f7f\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u8a00\u308f\u305a\u3068\u77e5\u308c\u305fTPC-C\u304cOLTP\u306e\u6027\u80fd\u6307\u6a19\u3068\u306a\u308b\u306e\u3067\u3042\u308c\u3070\u3001TPC-H\u306fDSS\u306e\u6307\u6a19\u3068\u306a\u308b\u3082\u306e\u3002 10\u5e74\u307b\u3069\u524d\u306e\u65b0\u5165\u793e\u54e1\u306e\u3053\u308d\u306bMySQL4.1\u3067\u7121\u7406\u77e2\u7406TPC-H\u306e\u30af\u30a8\u30ea\u3092\u52d5\u304b\u3057\u305f\u3082\u306e\u306e\u3001\u7d50\u679c\u304c\u8fd4\u3063\u3066\u3053&hellip;&nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[5,24,22],"tags":[],"_links":{"self":[{"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1478"}],"collection":[{"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1478"}],"version-history":[{"count":26,"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1478\/revisions"}],"predecessor-version":[{"id":1587,"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1478\/revisions\/1587"}],"wp:attachment":[{"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a23187.yorozuyah.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}