Magento does many things well, but maintaining an efficient database is not one of them.
So you should learn how to perform Magento Database Maintenance?
To perform Database Maintenance, you need to clean the log files. You can clean the log files with the admin panel, or by the cleaning function of the Magento. phpMyAdmin also offers a way to clean the log files that can help in maintaining the database of Magento.
Having many products is a good reason to have a large database. Sadly, this is not the only way your database can become large and sluggish. Maintaining the database through log cleaning can result in a dramatic improvement in site performance and latency. This guide explains how to optimize a large and potentially inefficient Magento database.
Attention: Always backup your data before performing any operations on the database.
Magento maintains several tables for logging. These tables log things such as customer accesses and frequently-compared products.
Magento has a mechanism for cleaning these logs regularly, but unfortunately, this feature is disabled by default and most customers do not enable it.
There are three ways to clean out these tables to perform Magento Database Maintenance:
You can either configure the shell utility log.php as a cron job or run manually to clean on-the-fly.
php -f shell/log.php clean
2. Use the –days switch to specify how many days of history to save.
This is the most efficient way to clean the logs for those more comfortable working with databases.
It is faster than the built-in Magento tools and it allows you to clean other tables not included in those tools.
This procedure will consolidate the data inside those tables, often decreasing database size by as much as 95% and greatly reducing query times.
Hope now you know how to perform Magento Database Maintenance.
If still any problem, leave the problem in comments.
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.
This site uses Akismet to reduce spam. Learn how your comment data is processed.