1 # See related script table_io_setup_helper.inc
3 # Stop table io recording
4 update performance_schema.setup_consumers
set enabled=
'NO';
5 eval select event_name,
6 left(source, locate(
":", source)) as short_source,
7 object_type, object_schema,
8 if (locate("
#sql-", object_name), "#sql-XXXX", object_name)
10 operation, number_of_bytes
11 from performance_schema.events_waits_history_long
12 where event_name like
'wait/io/table/%'
13 and object_schema in ($schema_to_dump)
14 order by thread_id, event_id;
16 # In case of failures, this will tell if table io are lost.
17 show status like
'performance_schema_%';
20 truncate performance_schema.events_waits_history_long;