events_waits_history - xiaoboluo768/mysql-system-schema GitHub Wiki

  • events_waits_history表包含每个线程最近的N个等待事件。 在server启动时,N的值会自动调整。 如果要显式设置这个N大小,可以在server启动之前调整系统参数performance_schema_events_waits_history_size的值。 等待事件需要执行结束时才被添加到events_waits_history表中(没有结束时保存在events_waits_current表)。当添加新事件到events_waits_history表时,如果该表已满,则会丢弃每个线程较旧的事件
  • events_waits_history表与events_waits_current表表定义相同
  • 允许执行TRUNCATE TABLE语句
  • 参考链接:https://dev.mysql.com/doc/refman/5.7/en/events-waits-history-table.html

上一篇: events_waits_current表 | 下一篇: events_waits_history_long表