Millisecond-Level SQL Statements Recorded in Slow Query Logs
Scenario
The value of long_query_time for RDS for MySQL slow query logs is set to 1 second. However, there are SQL statements whose average execution time is less than 1 second in slow query logs.
Troubleshooting
Check whether log_queries_not_using_indexes is set to ON. If yes, the SQL statements not using indexes will also be recorded in slow query logs.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot