Documentation Home
MySQL 8.3 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 294.0Kb
Man Pages (Zip) - 409.0Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb
Excerpts from this Manual

29.12.7.3 事件事务历史长表

events_transactions_history_long 表包含了最近的 N 个全局事务事件,跨越所有线程。事务事件不会被添加到表中,直到它们结束。当表满时, oldest 行将被丢弃,而不管哪个线程生成了行。

性能模式在服务器启动时自动调整 N 的值。要明确设置表大小,请在服务器启动时设置 performance_schema_events_transactions_history_long_size 系统变量。

events_transactions_history_long 表具有与 events_transactions_current 相同的列。请参阅 第 29.12.7.1 节,“事件事务当前表”。与 events_transactions_current 不同的是,events_transactions_history_long 没有索引。

TRUNCATE TABLE 允许用于 events_transactions_history_long 表。它将删除行。

有关三个事务事件表之间的关系的更多信息,请参阅 第 29.9 节,“性能模式当前和历史事件表”

有关配置事务事件收集的更多信息,请参阅 第 29.12.7 节,“性能模式事务表”