Last week, yours truly has pushed a new feature into MariaDB 10.1 tree: ANALYZE statement.
The idea of this feature is to make it easy to compare query plan with query execution. ANALYZE statement will run the statement, and produce EXPLAIN-like output, where optimizer’s estimates are followed by numbers that were observed when running the query. The output looks like this:
Here,
- Next to rows there is r_rows column which shows how many records were read from the table.
- Next to filtered there is r_filtered column which shows which fraction of records was left after the part of the WHERE condition attached to the table was checked.
I think this should explain the feature. If you want more details, please refer to the KB article …
[Read more]