You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
1.0 KiB
14 lines
1.0 KiB
create definer = `mysql.sys`@localhost view sys.x$io_global_by_file_by_latency as
|
|
select `performance_schema`.`file_summary_by_instance`.`FILE_NAME` AS `file`,
|
|
`performance_schema`.`file_summary_by_instance`.`COUNT_STAR` AS `total`,
|
|
`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WAIT` AS `total_latency`,
|
|
`performance_schema`.`file_summary_by_instance`.`COUNT_READ` AS `count_read`,
|
|
`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_READ` AS `read_latency`,
|
|
`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE` AS `count_write`,
|
|
`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WRITE` AS `write_latency`,
|
|
`performance_schema`.`file_summary_by_instance`.`COUNT_MISC` AS `count_misc`,
|
|
`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_MISC` AS `misc_latency`
|
|
from `performance_schema`.`file_summary_by_instance`
|
|
order by `performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WAIT` desc;
|
|
|