We are planning to migrate our multi-website (one hosting, multiple websites) system from shared hosting to DO but got stuck at slow database speeds. Our current hosting DB selects 2000 rows from table in around 100ms while on DO it takes around 180ms (compared to 3ms on local nvme drive :O). Upgrading / switching to optimized droplets does not help at all. We tried to use MySQL 8, 5.7 and also MariaDB 10.1 with the same result.
This is causing the frontpage for our websites to be 40% slower than usual. Also AWS is running fast. Any ideas? We love DO that’s why we would like to use it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @lamka02sk,
Just upgrading your droplet might not help if you have set some limits to your configuration file. You might need to edit your my.cnf file so that everything suits your needs.
If you are wondering what values to use, there are some tools to help you out. One that I use is MySQLTunner
Additionally, I’ll suggest you to create a slow query log for your MySQL/MariaDB instance and see if there are any queries causing this slowness.
Kind regards, Kalin
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.