25.12.7.2 events_transactions_historytable

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

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

events_transactions_historytable 具有与events_transactions_current相同的列。参见第 25.12.7.1 节“ events_transactions_currenttable”

events_transactions_historytable 允许TRUNCATE TABLE。它删除行。

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

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