These views summarize overall statement statistics, grouped by user. By default, rows are sorted by descending total latency.
The
user_summary_by_statement_latency
and
x$user_summary_by_statement_latency
views have these columns:
userThe client user name. Rows for which the
USERcolumn in the underlying Performance Schema table isNULLare assumed to be for background threads and are reported with a host name ofbackground.totalThe total number of statements for the user.
total_latencyThe total wait time of timed statements for the user.
max_latencyThe maximum single wait time of timed statements for the user.
lock_latencyThe total time waiting for locks by timed statements for the user.
cpu_latencyThe time spent on CPU for the current thread.
rows_sentThe total number of rows returned by statements for the user.
rows_examinedThe total number of rows read from storage engines by statements for the user.
rows_affectedThe total number of rows affected by statements for the user.
full_scansThe total number of full table scans by statements for the user.