Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: update slow query document #922

Merged
merged 4 commits into from
Oct 12, 2018
Merged

Conversation

tiancaiamao
Copy link
Contributor


admin show slow recent N
admin show slow top [internal | all] N

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For code blocks, we use 3 backticks both before and after the code block. To keep it consistent and easy to identify (for display improvement later), please update all code blocks in this PR. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

`top N` 则显示最近一段时间(大约几天)内,最慢的查询记录。
如果指定 `internal` 选项,则返回查询系统内部 SQL 的慢查询记录;
如果指定 `all` 选项,返回系统内部和用户 SQL 汇总以后的慢查询记录;
默认只返回用户 SQL 中的慢查询记录。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not manually break a line in the body text. Please update line 103~106.

Copy link
Member

@lilin90 lilin90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lilin90 lilin90 merged commit cfc0b72 into pingcap:master Oct 12, 2018
@tiancaiamao tiancaiamao deleted the slow-query branch October 22, 2018 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants