I'm not sure you can compare performances of those two.
Same query in Digital Ocean Managed MySQL DB more than doubly slow than on droplet.
Hey all!
May be a dumb question, but I'd rather ask.
I currently have my DB on a separate droplet in DO. The Spec is:
2 GB Memory, 2 vCPUs, 3 TB, 60 GB DISK, $15/mo
I'm in the process of migrating to a Managed DB and have opted for the cheapest spec to start:
1 GB Memory, 1 vCPU, 10 GB DISK, $15/mo
For the most part I don't see any performance hits however I have one page (Dashboard) that loads 7 charts based on logs which has gone from around 2s to load to 10s.
I have the following query running 7 times with slight differences in what it is searching for.
SELECT DATE(created_at) as d, COUNT(id) as c FROM `logs` WHERE site_id = 4 AND `action` LIKE '%DLM Item Downloaded%' GROUP BY DATE(created_at);
In sequel pro on the current live droplet DB this takes 962ms for one query, however within TablePlus on the MySQL 8 Managed DB this takes 2.076s.
I know this is a lower spec but I don't have any traffic going to this DB yet and the Insights don't look too bad from within the DO dashboard for the Managed DB to me.
Memory: Around 66%. CPU: 8% - although this goes up to around 18% when I load the Dashboard page. Disk Usage: 8.29.
Is this purely because I have a lower spec? Or is there something else I should be considering?
Thanks!
Please or to participate in this conversation.