I'm trying to figure out how should I take into account the rows
column of MySQL explain
's output. Here's what MySQL documentation says about it:
The rows column indicates the number of rows MySQL believes it must examine to execute the query.
So here are my questions:
- Regardless of its exactness, is this the number of records that are going to be examined after the indices are used or before?
- Is it correct that I need to value the optimization of tables with high
rows
? - Is it true that the total number of records MySQL will examine is the product of
rows
column? - What are the strategies to reduce the
rows
?