Question

We have a CE 1.9.2.4 store which has been live around 3 weeks.

Prior to launch, we used Cart2Cart to import the client's historical customers & their orders from his old CRE Loaded site.

The sites response time is now very slow and we think it's down to the size of the database (890mb).

Is there any way to clean up the database? Purge old orders? Make things work quicker?

Was it helpful?

Solution

To clean DB use:

SET foreign_key_checks = 0;

TRUNCATE core_cache;
TRUNCATE core_cache_option;
TRUNCATE core_cache_tag;
TRUNCATE core_session;

TRUNCATE dataflow_batch_export;
TRUNCATE dataflow_batch_import;
TRUNCATE log_customer;
TRUNCATE log_quote;
TRUNCATE log_summary;
TRUNCATE log_summary_type;
TRUNCATE log_url;
TRUNCATE log_url_info;
TRUNCATE log_visitor;
TRUNCATE log_visitor_info;
TRUNCATE log_visitor_online;
TRUNCATE report_viewed_product_index;
TRUNCATE report_compared_product_index;
TRUNCATE report_event;
TRUNCATE index_event;
TRUNCATE index_process_event;
TRUNCATE catalog_compare_item;

SET foreign_key_checks = 1;

Also you can update mysql.cnf file for better performance, look into this https://github.com/magenx/Magento-mysql/blob/master/my.cnf/my.cnf

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top