Amazon RDS MySQL instance performs very slow

前端 未结 7 1568
轻奢々
轻奢々 2021-01-31 17:58

I have published my website on Amazon EC2 (Singapore region) and I have used MySQL RDS instance for the data storage. Everything is working very fine except performance.

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 18:15

    You can check where the query is taking time by making use of profiling. Use the below query:

    1. set profiling=1
    2. execute your select query
    3. show profile

    This will tell you about the status of the query and where the query is spending its time. If the sum of all the time returned by the profiling is less than the actual execution time of the query, then maybe other factors like Network bandwidth may be the cause of it.

提交回复
热议问题