statements_with_runtimes_in_95th_percentile

Overview

In 11.4 ES, 10.6 ES, 10.6 CS:

A description for this sys Table has not yet been added to this Documentation.

In 11.4 ES, 10.6 ES:

A description for this sys Table has not yet been added to this Documentation.

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 `statements_with_runtimes_in_95th_percentile` AS SELECT
  `sys`.`format_statement`(`stmts`.`DIGEST_TEXT`) AS `query`,
  `stmts`.`SCHEMA_NAME` AS `db`,
  if(`stmts`.`SUM_NO_GOOD_INDEX_USED` > 0 or `stmts`.`SUM_NO_INDEX_USED` > 0,'*','') AS `full_scan`,
  `stmts`.`COUNT_STAR` AS `exec_count`,
  `stmts`.`SUM_ERRORS` AS `err_count`,
  `stmts`.`SUM_WARNINGS` AS `warn_count`,
  format_pico_time(`stmts`.`SUM_TIMER_WAIT`) AS `total_latency`,
  format_pico_time(`stmts`.`MAX_TIMER_WAIT`) AS `max_latency`,
  format_pico_time(`stmts`.`AVG_TIMER_WAIT`) AS `avg_latency`,
  `stmts`.`SUM_ROWS_SENT` AS `rows_sent`,
  round(ifnull(`stmts`.`SUM_ROWS_SENT` / nullif(`stmts`.`COUNT_STAR`,0),0),0) AS `rows_sent_avg`,
  `stmts`.`SUM_ROWS_EXAMINED` AS `rows_examined`,
  round(ifnull(`stmts`.`SUM_ROWS_EXAMINED` / nullif(`stmts`.`COUNT_STAR`,0),0),0) AS `rows_examined_avg`,
  `stmts`.`FIRST_SEEN` AS `first_seen`,
  `stmts`.`LAST_SEEN` AS `last_seen`,
  `stmts`.`DIGEST` AS `digest`
FROM (`performance_schema`.`events_statements_summary_by_digest` `stmts` join `sys`.`x$ps_digest_95th_percentile_by_avg_us` `top_percentile` on(round(`stmts`.`AVG_TIMER_WAIT` / 1000000,0) >= `top_percentile`.`avg_us`)) order by `stmts`.`AVG_TIMER_WAIT` desc

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

11.4 Enterprise

  • Not present.

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

11.4 Enterprise

  • Not present.

10.6 Enterprise

  • Added in MariaDB Enterprise Server 10.6.4-1.

10.5 Enterprise

  • Not present.

10.4 Enterprise

  • Not present.

EXTERNAL REFERENCES