ANALYZE statement

You are viewing an old version of this article. View the current version here.
MariaDB starting with 10.0.0

The ANALYZE statement command is a new feature in MariaDB 10.1.0.

Command description

ANALYZE statement command will run the statement, but instead of statement's output it will produce EXPLAIN output, accompanied with statistics from statement's execution.

TODO example.

Compared to EXPLAIN, ANALYZE produces two extra columns:

  • r_rows is an observation-based counterpart of rows column. It shows how many rows were actually read from the table.
  • r_filtered is an observation-based counterpart of filtered column. It shows which fraction of rows was left after applying the WHERE condition.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.