I have a RDS MySQL Aurora DB(db.t2.medium) hosted in us-east region
A select query returning around 25k(5 MB) rows is taking around 3 mins.
(When executed by my back-end(same VPC as DB) and executed by me via MySQL workbench from India)
Same query on the dump of same db on my local is taking around < 2 seconds(using MySQL workbench) and is returning same no of rows(25k).
I've checked out the CPU utilisation metrics of my db instance and there are no spikes/surprises there.
My db is hosted in us-east region and I am executing the query from India using MySQL workbench.
One thing to note that when the query is executed by my backed on db(they are in the same VPC) still the query is exactly slow.
When i hit the query from India via MySQL workbench to my RDS instance the duration time is under a second but the fetch time is around 3 mins(with or without VPN). duration vs fetch
When i hit the same query on dump of same db on my local, the duration is almost same but the fetch time is around 1 second(same no of rows).
I am not sure why there is no much of difference is fetch time?