Report this

What is the reason for this report?

Do managed databases throttle performance based on the query source?

Posted on January 5, 2024

I’m working with a Python script that saves/updates batches of data to a MySQL database and have observed a strange and dramatic difference in performance.

When I run my Python script from GitPod, it takes about 100 seconds to update 1,000 rows in the database.

When I run the same script on a DO droplet in the same datacenter as my database, it takes <1 second to update 1,000 rows in the database.

I don’t think it’s a bandwidth issue, the gitpod has great connection: Download: 1268.49 Mbit/s Upload: 962.83 Mbit/s

The only idea I’ve come up with is that DO is throttling the performance of queries that come from an external network, but the difference in performance seems pretty extreme.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.