MySQL 8.4 Release Notes
30.3 sys Schema 进度报告
以下sys
架构视图为长时间事务提供进度报告:
Press CTRL+C to copyprocesslist session x$processlist x$session
假设所需的工具和消费者已启用,progress
这些视图的列显示了支持进度报告的阶段的工作百分比完成情况。
进度报告需要启用events_stages_current
消费者,以及想要获取进度信息的工具。当前支持进度报告的工具stage为:
Press CTRL+C to copystage/sql/Copying to tmp table stage/innodb/alter table (end) stage/innodb/alter table (flush) stage/innodb/alter table (insert) stage/innodb/alter table (log apply index) stage/innodb/alter table (log apply table) stage/innodb/alter table (merge sort) stage/innodb/alter table (read PK and internal sort) stage/innodb/buffer pool load
对于不支持估算和完成工作报告的阶段,或者如果所需的工具或消费者未启用,progress
列将是NULL
。