Is there a way to get rows_examined in MySQL without the slow log?

后端 未结 4 563
无人及你
无人及你 2020-12-19 09:26

I\'m building some profile information for a home grown app. I\'d like the debug page to show the query sent along with how many rows were examined without assuming that slo

4条回答
  •  有刺的猬
    2020-12-19 09:47

    Prepend the query with EXPLAIN. In MySQL that will show the query's execution path, which tables were examined as well as the number of rows examined for each table.

    Here's the documentation.

提交回复
热议问题