Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

How to Optimize Magento Database to improve site speed

by | Mar 14, 2021

Wondering how to Optimize Magento Database to improve your website speed? We can help you.

Ensuring that our e-commerce solution is running fast is one of the most important factors to the sales.

SEO rankings, abandonment rate, and the shopper’s overall user experience are also as important as the speed of the website.

Here at Bobcares, we often handle requests to optimize Magento database as a part of our Server Management Services.

Today let’s see how our Support Engineers do this for our customers.

How to Optimize Magento Database

The following steps can be used to Optimize Magento database.

1. MySQL table optimization

Through phpMyAdmin, we can perform the command OPTIMIZE TABLE on specific Magento database-tables. When a table is cluttered, this could lead to improvement of performance. This does not only count for the complex EAV-tables, but also for regular MySQL tables frequently in use (for instance, core_config_data).

2. MySQL server tuning

The default MySQL setup is a lot of times sufficient to run a general hosting environment, but not all optimized for Magento. Tuning settings like query_cache_size could dramatically increase performance but is also dangerous because it hugely depends on other variables (number of databases, number of tables per database, number of queries, peak usage).

3. Log cleaning

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 this feature is disabled by default and most customers do not enable it.

4. Query Cache size

Modify the configuration of the MySQL server to take better advantage of the server’s RAM. Most Linux distributions provide a conservative MySQL package out of the box to ensure it will run on a wide array of hardware configurations. If we have ample RAM (eg, 1gb or more), then we can try tweaking the configuration. An example of my.cnf is below. However, will have to consult the MySQL documentation for a complete list of configuration directives and recommended settings.

Query Cach: query_cache_size: 64MB, query_cache_limit: 2MB
query_cache_type = 1
query_cache_size = 32M
query_cache_limit=2M

Recommended innodb_buffer_pool_size.
Combined web and db server, 6 GB RAM: 2-3 GB
Dedicated database server, 6GB RAM: 5 GB
Dedicated database server, 12 GB RAM: 10 GB

innodb_thread_concurrency.
2 * [numberofCPUs] + 2

5. Setup Faster Hardware for Server Hosting

SSD for databases

 [Need assistance to Optimize your Magento? – We can help you]

Conclusion

In short, eCommerce customers expect a website to load within 2 seconds. Today we saw how our Support Techs do Magento speed optimization using open-source software.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *