データベース

MySQL
PostgreSQL

DB発行は使用されているデータベースによって変わります。データベース管理者とデータベースかチェックのためのドキュメンテーションを研究してください。

MySQL

MySQLテーブル・タイプMyISAM(デフォルトです)を使用し、テーブルの大部分を削除したならば、あるいは可変長列(VARCHAR、BLOBあるいはTEXTカラムがあるテーブル)でテーブルに多くの変更を加えていれば、「optimize(最適化)」コマンドでデータ・ファイル(テーブル)をフラグメンテーション解消しなければいけません。

mysqldデーモンがCPU時間の多くを必要とする場合、テーブルの最適化を試みるべきです。- チケット、ticket_historyおよび記事(下記のスクリプトを参照)。

shell> mysql -u user -p database
mysql> optimize table ticket;
mysql> optimize table ticket_history;
mysql> optimize table article;
            

スクリプト:データ・ベース・テーブルの最適化。

PostgreSQL

PostgreSQL is best tuned by modifying the postgresql.conf file in your PostgreSQL data directory. For advice on how to do this, reference the following articles:

If performance is still not satisfactory, we suggest that you join the PostgreSQL Performance mailing list ( http://www.postgresql.org/community/lists/ ), and ask questions there. The folks on the PostgreSQL list are very friendly and can probably help.