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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.