25.12.4.2 events_waits_historytable

events_waits_historytable 包含* N *每个线程已结束的最新 await 事件。await 事件在结束之前不会添加到 table 中。当 table 包含给定线程的最大行数时,为该线程添加新行时,最早的线程行将被丢弃。线程结束时,将丢弃其所有行。

在服务器启动期间,性能架构会自动调整* N *的值。要显式设置每个线程的行数,请在服务器启动时设置performance_schema_events_waits_history_size系统变量。

events_waits_historytable 具有与events_waits_current相同的列。参见第 25.12.4.1 节“ events_waits_currenttable”

events_waits_historytable 允许TRUNCATE TABLE。它删除行。

有关三个 await 事件 table 之间的关系的更多信息,请参见第 25.9 节“当前和历史事件的性能架构 table”

有关配置是否收集 await 事件的信息,请参见第 25.12.4 节“性能架构 await 事件 table”