Magento 1.7 – Is Cleaning Logs from Database a Good Practice?

databaselogmagento-1.7performance

If exported current database as an SQL file size is over 600Mb. Most of which are logs. My question is can cleaning up logs from the database be a good practice to speed up a Magento website?

Best Answer

Magento maintains several tables for logging.These tables log things such as customer and visitor accesses and which products have been compared and which are viewed.Magento has a mechanism for cleaning these logs regularly, but unfortunately this feature is disabled by default and most customers do not turn it on.Please follow the steps to clean out the log tables

  1. Open the database in phpMyAdmin via Control Panel.

  2. In the right frame, select the check box for the following tables:

    dataflow_batch_export
    dataflow_batch_import
    log_customer
    log_quote
    log_summary
    log_summary_type
    log_url
    log_url_info
    log_visitor
    log_visitor_info
    log_visitor_online
    report_viewed_product_index
    report_compared_product_index
    report_event
    
  3. At the bottom of the page, click the drop-down box With Selected and select Empty.

  4. A confirmation screen will appear. Click Yes. This will truncate all of the selected tables.

    Keep in mind that we are here to empty (Truncate) selected tables are not drop them. Be very careful when you do this.

Related Topic