Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update statement-summary-tables.md
Browse files Browse the repository at this point in the history
TomShawn authored and ti-chi-bot committed Sep 24, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 62bd80b commit fc6c5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statement-summary-tables.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ aliases: ['/docs-cn/stable/statement-summary-tables/','/docs-cn/v4.0/statement-s

针对 SQL 性能相关的问题,MySQL 在 `performance_schema` 提供了 [statement summary tables](https://dev.mysql.com/doc/refman/5.6/en/statement-summary-tables.html),用来监控和统计 SQL。例如其中的一张表 `events_statements_summary_by_digest`,提供了丰富的字段,包括延迟、执行次数、扫描行数、全表扫描次数等,有助于用户定位 SQL 问题。

为此,从 4.0.0-rc.1 版本开始,TiDB 在 `information_schema` (_not_ `performance_schema`) 中提供与 `events_statements_summary_by_digest` 功能相似的系统表:
为此,从 4.0.0-rc.1 版本开始,TiDB 在 `information_schema`_而不是_ `performance_schema`中提供与 `events_statements_summary_by_digest` 功能相似的系统表:

- `statements_summary`
- `statements_summary_history`

0 comments on commit fc6c5a9

Please sign in to comment.