user_summary

Overview

In 10.6 ES, 10.6 CS:

A summary of the users.

In 10.6 ES:

A summary of the users.

In 10.5 ES, 10.5 CS, 10.4 ES, 10.4 CS, 10.3 ES, 10.3 CS, 10.2 ES, 10.2 CS:

Not present

In 10.5 ES, 10.4 ES:

Not present

USAGE

DETAILS

SYNONYMS

SCHEMA

VIEW `user_summary` AS SELECT
  if(`performance_schema`.`accounts`.`USER` is null,'background',`performance_schema`.`accounts`.`USER`) AS `user`,
  sum(`stmt`.`total`) AS `statements`,
  `sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,
  `sys`.`format_time`(ifnull(sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0),0)) AS `statement_avg_latency`,
  sum(`stmt`.`full_scans`) AS `table_scans`,
  sum(`io`.`ios`) AS `file_ios`,
  `sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,
  sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,
  sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,
  count(distinct `performance_schema`.`accounts`.`HOST`) AS `unique_hosts`,
  `sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,
  `sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated`
FROM (((`performance_schema`.`accounts` left join `sys`.`x$user_summary_by_statement_latency` `stmt` on(if(`performance_schema`.`accounts`.`USER` is null,'background',`performance_schema`.`accounts`.`USER`) = `stmt`.`user`)) left join `sys`.`x$user_summary_by_file_io` `io` on(if(`performance_schema`.`accounts`.`USER` is null,'background',`performance_schema`.`accounts`.`USER`) = `io`.`user`)) left join `sys`.`x$memory_by_user_by_current_bytes` `mem` on(if(`performance_schema`.`accounts`.`USER` is null,'background',`performance_schema`.`accounts`.`USER`) = `mem`.`user`)) group by if(`performance_schema`.`accounts`.`USER` is null,'background',`performance_schema`.`accounts`.`USER`) order by sum(`stmt`.`total_latency`) desc

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

10.6 Enterprise

  • Added in MariaDB Enterprise Server 10.6.4-1.

10.6 Community

  • Added in MariaDB Community Server 10.6.0.

10.5 Enterprise

  • Not present.

10.5 Community

  • Not present.

10.4 Enterprise

  • Not present.

10.4 Community

  • Not present.

10.3 Enterprise

  • Not present.

10.3 Community

  • Not present.

10.2 Enterprise

  • Not present.

10.2 Community

  • Not present.

Release Series

History

10.6 Enterprise

  • Added in MariaDB Enterprise Server 10.6.4-1.

10.5 Enterprise

  • Not present.

10.4 Enterprise

  • Not present.

EXTERNAL REFERENCES