エキサイトは、話題のニュースや人気ブログ、格安プロバイダなどを展開する便利で安心のポータルサイトです。芸能や音楽、料理や育児の情報も幅広く発信しています。
1つ目が「indexは後からつける」 create table test ( id integer, title varchar(255) );こんなテーブルにCOPYでインポートするとき、 create index test_idx on test(title);こういったindexを先につけてから実行すると30万行のデータで10分程度。6000万行あると72時間程度経っても終わらず。 indexなしなら10分で6000万行いけました。データが入った後のcreate indexには1~2時間。 動作環境はCPU 2.80GHz、Memory 1GでFedoraCore5にPostgreSQL8.1.4。 2つ目が「テーブルごとにデータをエクスポートするときはpg_dumpではなくてCOPY」 バックアップ用のpg_dumpを使うと簡単ですが、-tでテーブルを指定するとCOPY文にならずに
Over 320 mini pixel icons! All Free! These mini icons are designed at 14×14px with transparent background. They are specially designed for header or side navigation buttons. Feel free to use these icons for your site (personal or commerical). However, if you are using more than 10 different icons, you must give a link back to N.Design Studio. If you like these icons, please help me to spread out t
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く