I'm just wondering if there is an obvious reason for this....
I run a query in a MySQL database console and the results are returned within 0.2 seconds.
The same query then via a URL route in a flask app (even stripping further code - just simply make the request and return the results) takes around 5 to 9 seconds.
Is this just all the remote connections to the database etc? If so, is there anything I can do to speed things up further?