I notice in my slow log that it includes this:
# Query_time: 6.225232 Lock_time: 0.000122 Rows_sent: 21 Rows_examined: 8366
Is there a way for me to retrieve that "Rows examined" value without doing a separate query? There obviously MUST be a way for it to be in the log, but how do I find it? Specifically in PHP, and I'm using MySQLi procedural style.
Note that this isn't the number of rows returned, but the number of rows examined. So when there are 8366 potential rows but I have LIMIT 21, I want to show the 8366.