{"id":1094,"date":"2012-12-14T16:48:56","date_gmt":"2012-12-14T07:48:56","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=1094"},"modified":"2018-11-14T16:33:58","modified_gmt":"2018-11-14T07:33:58","slug":"%e5%a4%a7%e9%87%8f%e3%83%87%e3%83%bc%e3%82%bf%e5%8f%96%e8%be%bc%e3%81%ae%e3%81%84%e3%82%8d%e3%81%84%e3%82%8d-postgresql%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2012\/12\/14\/%e5%a4%a7%e9%87%8f%e3%83%87%e3%83%bc%e3%82%bf%e5%8f%96%e8%be%bc%e3%81%ae%e3%81%84%e3%82%8d%e3%81%84%e3%82%8d-postgresql%e7%b7%a8\/","title":{"rendered":"\u5927\u91cf\u30c7\u30fc\u30bf\u53d6\u8fbc\u306e\u3044\u308d\u3044\u308d PostgreSQL\u7de8"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u6751\u4e0a\u3067\u3059\u3002<\/p>\n<p>\u4eca\u65e5\u306fJava\u304b\u3089\u96e2\u308c\u3066DB\u95a2\u9023\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u524d\u306fIBM\u306eDB2\u3068\u3044\u3046\u88fd\u54c1\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u306fPostgreSQL\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u3042\u308b\u6848\u4ef6\u306b\u3066\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3080\u3053\u3068\u304c\u3042\u308a\u3001\u305d\u3053\u3067\u3044\u308d\u3044\u308d\u3068\u5927\u91cf\u30c7\u30fc\u30bf\u53d6\u8fbc\u306e\u3053\u3068\u3092\u8abf\u67fb\u3057\u305f\u306e\u3067\u3061\u3087\u3053\u3063\u3068\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u6848\u4ef6\u3067\u306f\u6570\u5104\u4ef6\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3080\u4e88\u5b9a\u3067\u3059\u3002<br \/>\n\u3042\u307e\u308a\u5927\u898f\u6a21\u30c7\u30fc\u30bf\u3092\u6271\u3046\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3001\u3059\u3054\u3044\u8cb4\u91cd\u306a\u6848\u4ef6\u3067\u3059\u306d\u3002<\/p>\n<h2>\u53d6\u8fbc\u8abf\u67fb\u5185\u5bb9<\/h2>\n<p>\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3080\u65b9\u6cd5\u3067\u3059\u304c\u3001\u6b21\u306e4\u3064\u3067\u3084\u308a\u307e\u3057\u305f\u3002<\/p>\n<hr \/>\n<ol> \u3000\u3000<strong><\/p>\n<li>\u7537\u6c17 Insert<\/li>\n<p><\/strong> <\/p>\n<p>Insert\u3092\u30ac\u30c1\u3067\u6d41\u3057\u3066\u884c\u304d\u307e\u3059\uff01\uff01<\/p>\n<p> \u3000\u3000<strong><\/p>\n<li>\u738b\u9053 Copy\u30b3\u30de\u30f3\u30c9<\/li>\n<p><\/strong> <\/p>\n<p>\u3084\u3063\u3071PostgreSQL\u306e\u53d6\u8fbc\u306e\u738b\u9053\u306fCopy\u30b3\u30de\u30f3\u30c9\u3063\u3057\u3087\uff01\uff01<\/p>\n<p> \u3000\u3000<strong><\/p>\n<li>\u90aa\u9053 Copy\u30b3\u30de\u30f3\u30c9<\/li>\n<p><\/strong> <\/p>\n<p>Copy\u30b3\u30de\u30f3\u30c9\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u3042\u3063\u305f\u6642\u305d\u3093\u306a\u306b\u901f\u304f\u306a\u3044\u304b\u3089\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3068\u308a\u3042\u3048\u305aDrop\u3057\u3066Copy\u30b3\u30de\u30f3\u30c9\u3063\u3057\u3087\uff01\uff01\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u306f\u5f8c\u56de\u3057\u3002<\/p>\n<p> \u3000\u3000<strong><\/p>\n<li>\u88cf\u30ef\u30b6 pg_bulkload<\/li>\n<p><\/strong> <\/p>\n<p>\u304a\u5ba2\u3055\u3093\u3053\u308c\u77e5\u3063\u3066\u307e\u3059\u304b\uff1f\u3053\u308c\u901f\u3044\u3093\u3067\u3063\u305b\uff01\uff01 \u3072\u3063\u3072\u3063\u3072\u3063<\/p>\n<\/ol>\n<hr \/>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u691c\u8a3c\u306f100\u4e07\u4ef6\u306e\u30c7\u30fc\u30bf\u3092100\u30d5\u30a1\u30a4\u30eb\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002\u751f\u6210\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306f1\u5104\u4ef6\u3067\u3059\u306d\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u7d50\u679c\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u30b9\u30da\u30c3\u30af\u306f<\/p>\n<p>\u30e1\u30e2\u30ea\uff1a500M<br \/>\nCPU\uff1a1Core<br \/>\nOS\uff1aCentOS 6<br \/>\nPostgreSQL\uff1a9.2.2<br \/>\n\u53d6\u8fbc\u30c7\u30fc\u30bf\u306f1\u884c75\u30d0\u30a4\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u306f75M\u3067\u3059\u3002<\/p>\n<p>\u3067\u3059\u3002<\/p>\n<h2>\u7d50\u679c<\/h2>\n<hr \/>\n<h3>\u7537\u6c17 Insert<\/h3>\n<p>1\u5206\u9593\u306b15000\u4ef6\u307b\u3069\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002<br \/>\n100\u4e07\u4ef6\u53d6\u308a\u8fbc\u3080\u306e\u306b1\u6642\u9593\u5f37\u304b\u304b\u308a\u30011\u5104\u4ef6\u306e\u53d6\u8fbc\u306f\u632b\u6298<br \/>\n\u79c1\u306b\u7537\u6c17\u304c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3002\u3002<\/p>\n<hr \/>\n<h3>\u738b\u9053 Copy\u30b3\u30de\u30f3\u30c9<\/h3>\n<p>\u6700\u521d\u306e100\u4e07\u4ef6\u306f20\u79d2\u307b\u3069\u3067\u53d6\u8fbc\u5b8c\u4e86\u3067\u3057\u305f\u3002<br \/>\n\u3051\u3069\u3001\u3053\u3053\u304b\u3089\u304c\u826f\u304f\u306a\u3044\uff01\uff01<\/p>\n<p>Insert\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b<br \/>\n500\u4e07\u4ef6\u8d85\u3048\u305f\u3042\u305f\u308a\u3067\u53d6\u8fbc\u304c20\u5206\u307b\u3069\u304b\u304b\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n1\u5104\u4ef6\u306f\u3042\u304d\u3089\u3081\u307e\u3059\u3002\u3002\u3002<\/p>\n<hr \/>\n<h3>\u90aa\u9053 Copy\u30b3\u30de\u30f3\u30c9<\/h3>\n<p>\u6700\u521d\u306e100\u4e07\u4ef6\u306f5\u79d2\u307b\u3069\u3067\u3057\u305f\u3002<br \/>\n\u76ee\u3092\u7591\u3044\u305f\u304f\u306a\u308b\u30b9\u30d4\u30fc\u30c9\uff01\uff01<br \/>\n\u305d\u3057\u3066\u3001\u305d\u306e\u30b9\u30d4\u30fc\u30c9\u306f\u307b\u3068\u3093\u3069\u8870\u3048\u308b\u3053\u3068\u7121\u304f\u9045\u304f\u3066\u308210\u79d2\u304b\u304b\u3089\u306a\u3044\u307b\u3069\u3067\u3059\u3002<br \/>\n1\u5104\u4ef6\u306e\u53d6\u8fbc\u304c20\u5206\u5f31\u3050\u3089\u3044\u3067\u7d42\u4e86\u3067\u3059\u3002\u7206\u901f\u3002\u3002\u3002<br \/>\n\u3067\u3082\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u306e\u4f5c\u6210\u306f30\u5206\u307b\u3069\u304b\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3067\u3082\u5408\u308f\u305b\u30661\u6642\u9593\u4ee5\u5185\u3068\u3044\u3046\u306e\u306f\u9b45\u529b\u7684\u3067\u3059\u3002<\/p>\n<hr \/>\n<h3>\u88cf\u30ef\u30b6 pg_bulkload<\/h3>\n<p>pg_bulkload\u3063\u3066\u4f55\uff1f\u3063\u3066\u4eba\u3082\u591a\u3044\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u306d\u3002<br \/>\n\u79c1\u3082\u77e5\u3089\u306a\u304b\u3063\u305f\u3067\u3059\u3051\u3069\u3001\u30b0\u30b0\u308b\u3068\u3044\u308d\u3044\u308d\u3068\u60c5\u5831\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u305d\u3093\u306a\u306b\u96e3\u3057\u304f\u306a\u3044\u3067\u3059\u3002<br \/>\n\u30d0\u30fc\u30b8\u30e7\u30f3\u306fPostgreSQL9.2\u5bfe\u5fdc\u3057\u3066\u305d\u3046\u306a3.1.2\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u521d\u306e100\u4e07\u4ef6\u306f10\u79d2\u307b\u3069\u3067\u3001\u5f90\u3005\u306b\u901f\u5ea6\u306f\u9045\u304f\u306a\u308a\u3001\u6700\u5f8c\u306f2\u5206\u5f31\u3050\u3089\u3044\u304b\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n1\u5104\u4ef6\u306f2\u6642\u9593\u534a\u307b\u3069\u3067\u3059\u3002<br \/>\n\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3042\u308a\u3067\u3053\u306e\u901f\u5ea6\u306a\u3093\u3067\u5341\u5206\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u901f\u5ea6\u3092\u6c17\u306b\u3059\u308b\u306e\u306a\u3089\u3001\u300c\u90aa\u9053 Copy\u30b3\u30de\u30f3\u30c9\u300d\u3067\u3059\u3051\u3069\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u524a\u9664\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304c\u30cd\u30c3\u30af\u3067\u3059\u306d\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u904b\u7528\u304c\u59cb\u307e\u308b\u3068\u30b5\u30fc\u30d3\u30b9\u306f\u505c\u6b62\u305b\u3056\u308b\u3092\u5f97\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<br \/>\n\u30a4\u30cb\u30b7\u30e3\u30eb\u30c7\u30fc\u30bf\u4f5c\u6210\u3068\u304b\u306a\u3089\u304b\u306a\u308a\u6709\u52b9\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u300c\u88cf\u30ef\u30b6 pg_bulkload\u300d\u306f\u304a\u305d\u3089\u304f\u73fe\u5b9f\u7684\u306b\u4e00\u756a\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3082\u901f\u5ea6\u3068\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u3067\u72a0\u7272\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u307e\u3060\u304d\u3061\u3093\u3068\u306f\u8abf\u3079\u3089\u308c\u3066\u307e\u305b\u3093\u304c\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5236\u5fa1\u3084\u53d6\u8fbc\u9805\u76ee\u306e\u67d4\u8edf\u306a\u8a2d\u5b9a\u3068\u304b\u306f\u96e3\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6848\u4ef6\u306b\u63a1\u7528\u3059\u308b\u3068\u306a\u308b\u3068\u305d\u308c\u305e\u308c\u3044\u308d\u3044\u308d\u3068\u691c\u8a0e\u3057\u3066\u5c0e\u5165\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u6751\u4e0a\u3067\u3059\u3002<\/p>\n<p>\u4eca\u65e5\u306fJava\u304b\u3089\u96e2\u308c\u3066DB\u95a2\u9023\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u524d\u306fIBM\u306eDB2\u3068\u3044\u3046\u88fd\u54c1\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u306fPostgreSQL\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2012\/12\/14\/%e5%a4%a7%e9%87%8f%e3%83%87%e3%83%bc%e3%82%bf%e5%8f%96%e8%be%bc%e3%81%ae%e3%81%84%e3%82%8d%e3%81%84%e3%82%8d-postgresql%e7%b7%a8\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[206],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1094"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=1094"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1094\/revisions"}],"predecessor-version":[{"id":18003,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1094\/revisions\/18003"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}