MySQL 8.4 Release Notes
29.12.4.3. events_waits_history_long 表
events_waits_history_long
表包含 N
最新的等待事件,这些事件已经在全球范围内结束。等待事件直到结束后才添加到表中。当表满时,最新的行将被删除,以添加新的行,无论是哪个线程生成了这两个行。
性能_schema在服务器启动时自动调整 N
的值。要显式设置表大小,请在服务器启动时设置 performance_schema_events_waits_history_long_size
系统变量。
events_waits_history_long
表的列与 events_waits_current
表相同。请参阅 第29.12.4.1节,“The events_waits_current 表”。与 events_waits_current
不同的是,events_waits_history_long
表没有索引。
TRUNCATE TABLE
允许对 events_waits_history_long
表进行截断。它删除了行。
关于三个等待事件表之间关系的更多信息,请参阅 第29.9节,“Performance Schema 表 for Current and Historical Events”。
关于是否收集等待事件的配置信息,请参阅 第29.12.4节,“Performance Schema 等待事件表”。