-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add documents for information_schema.tidb_index_usage
and sys.schema_unused_index
.
#16511
Conversation
29bfe16
to
9bb6092
Compare
9bb6092
to
ee6cfbc
Compare
Signed-off-by: Yang Keao <[email protected]>
ee6cfbc
to
1dc5a34
Compare
Signed-off-by: Yang Keao <[email protected]>
2dabcd3
to
9172d7f
Compare
* `INDEX_NAME`:索引的名称。 | ||
* `QUERY_TOTAL`:访问该索引的语句总数。 | ||
* `KV_REQ_TOTAL`:访问该索引时产生的 KV 请求总数。 | ||
* `ROWS_ACCESS_TOTAL`:访问该索引时扫描的总行数。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对于大表,这个字段一直累加会不会有溢出的风险?需要特殊说明吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
假设集群每秒钟总共扫描 0xFFFFFFFF 行,uint64 在 0xFFFFFFFF s = 136.19252 年的时候才会溢出,现在看应该没啥风险 🤔 。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REST LGTM
@qw4990: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @hfxsd |
/hold |
Signed-off-by: Yang Keao <[email protected]>
/unhold |
Signed-off-by: Yang Keao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@bb7133: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Yang Keao <[email protected]>
Co-authored-by: xixirangrang <[email protected]>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Oreoxmt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What is changed, added or deleted? (Required)
Add the document for index usage related system tables and databases.
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
information_schema.tidb_index_usage
andsys.schema_unused_index
. docs#16446Do your changes match any of the following descriptions?