I am creating some profile information for a home application. I would like the debug page to display a request sent along with how many lines were checked, not assuming slow_log is enabled, not to mention parsing it.
Back in 2006, I wanted it failed . Is this still true?
I see that Peter Zaitsev has a technique where you:
- Run
FLUSH STATUS; - Run the query.
- Run
SHOW STATUS LIKE "Handler%";
and then on output:
Handler_read_next = 42250 means that 42250 lines were analyzed during this scan
which sounds as if MySQL was just learning indexes, it should give you a number. But is there a set of status vars that you can poll, add and find out how many lines are checked? Any other ideas?
source
share