Help Center/ Relational Database Service/ Troubleshooting/ RDS for MySQL/ Performance Issues/ Why Is My SQL Query Running So Slow?
Updated on 2022-09-21 GMT+08:00
Why Is My SQL Query Running So Slow?
- You can view the slow SQL logs to check whether any slowly executed SQL queries exist and view their performance characteristics (if any) to locate the cause.
- View the CPU usage metrics of RDS DB instance to facilitate troubleshooting.
- Create read replicas to offload read pressure on primary DB instances.
- When multiple associated tables are queried, indexes must be created for the associated fields.
- Do not use the SELECT statement to scan all tables. You can specify fields or add the WHERE condition.
Parent topic: Performance Issues
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.