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.20.6 对象等待摘要表

性能模式维护着 objects_summary_global_by_type 表,以聚合对象等待事件。

示例对象等待事件摘要信息:

mysql> SELECT * FROM performance_schema.objects_summary_global_by_type\G
...
*************************** 3. row ***************************
   OBJECT_TYPE: TABLE
 OBJECT_SCHEMA: test
   OBJECT_NAME: t
    COUNT_STAR: 3
SUM_TIMER_WAIT: 263126976
MIN_TIMER_WAIT: 1522272
AVG_TIMER_WAIT: 87708678
MAX_TIMER_WAIT: 258428280
...
*************************** 10. row ***************************
   OBJECT_TYPE: TABLE
 OBJECT_SCHEMA: mysql
   OBJECT_NAME: user
    COUNT_STAR: 14
SUM_TIMER_WAIT: 365567592
MIN_TIMER_WAIT: 1141704
AVG_TIMER_WAIT: 26111769
MAX_TIMER_WAIT: 334783032
...

objects_summary_global_by_type 表具有这些分组列,以指示表如何聚合事件:OBJECT_TYPEOBJECT_SCHEMAOBJECT_NAME。每行总结了给定对象的事件。

objects_summary_global_by_type 具有与 events_waits_summary_by_xxx 表相同的摘要列。请参阅 第 29.12.20.1 节,“等待事件摘要表”

objects_summary_global_by_type 表具有以下索引:

  • 主键在 (OBJECT_TYPEOBJECT_SCHEMAOBJECT_NAME) 上

TRUNCATE TABLE 在对象摘要表中是允许的。它将摘要列重置为零,而不是删除行。