I have a question regarding clearing of the log data in Magento.
I have more than 2.3GB of data in Magento 1.4.1, and now I want to optimize the database, because it
TRUNCATE `log_url_info`;
TRUNCATE `log_visitor_info`;
TRUNCATE `index_event`;
TRUNCATE `log_visitor`;
TRUNCATE `log_url`;
TRUNCATE `report_event`;
TRUNCATE `dataflow_batch_import`;
TRUNCATE `dataflow_batch_export`;
I just use it.
Further hint: If you don't need those information you can change the Table Type to "Blackhole" (instead of InnoDB). This means, nothing will be stored in the future and the insert statements are still working fine.
You can also disable the logs by setting all events to disabled:
https://gist.github.com/tegansnyder/189f1c3ce897b4ab494d
You may check good article here:
http://blog.magalter.com/magento-database-size
It has instructions how to check database size, truncate some tables and how to configure automatic table cleaning.