Clearing Magento Log Data

前端 未结 15 604
粉色の甜心
粉色の甜心 2020-12-07 08:31

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

相关标签:
15条回答
  • 2020-12-07 09:34
    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.

    0 讨论(0)
  • 2020-12-07 09:34

    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

    0 讨论(0)
  • 2020-12-07 09:36

    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.

    0 讨论(0)
提交回复
热议问题