Forums

MySQL queries running really slowly for a while

A couple of hours ago, I noticed my site was taking a long time to load. I tracked it down to my SQL query which was taking several seconds to run, when it used to take under a second. I looked through my code for a solution, but couldn't find any reason why it was running slowly. Then after a while, I checked and my site was loading quickly again and the SQL query was running quickly.

Since I hadn't changed my code, does this mean it was an issue with Pythonanywhere's SQL services running slowly? And if so, is it normal to have periods where the SQL service runs slowly?

Just wondering, thanks.

Your database will be running on the same server as other user's databases. If another user's database is consuming a lot of server resources it can have an impact on other users on that server. That's likely what you experienced in this case.