OTRS CVS - Manual
Prev | Chapter 21. Performance Tuning | Next

# Database

This depends on the database you are using. If you're having trouble, read the documentation for your database or ask your database admin.

## MySQL

If you use MySQL table type MyISAM (which is default) and have deleted a large part of a table or if you have made many changes to a table with variable-length rows (tables that have VARCHAR, BLOB or TEXT columns) you need to defragment the datafile (tables) with the "optimize" command.

You should try it if mysqld needs a lot of your CPU time. Optimize table ticket, ticket_history and article.

    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, see these articles: http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html If performance is still not satisfactory, we suggest that you join the PostgreSQL Performance mailing list and ask questions there. The folks on the PostgreSQL list are very friendly and can probably help http://www.postgresql.org/lists.html.

Prev | Home | Next
Performance Tuning | Up | Webserver