Rows Recorded in the SQL Diagnosis Result Far Less Than the Scanned Rows Recorded in Slow Query Logs
Scenario
When SQL diagnosis is performed on the DAS console for an RDS for MySQL DB instance, the number of rows recorded in the execution plan in the SQL statement diagnosis result is far less than the number of scanned rows in slow SQL logs.
Possible Causes
When the query optimizer determines to query a table through full table scanning, the rows column in the execution plan indicates the estimated number of rows to be read. The number of rows in the execution plan is not the number of scanned rows, because the table may be scanned repeatedly during the query.
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