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

Update sql-statement-show-profiles.md to reference statement summary tables #16187

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

adamf-db
Copy link
Contributor

What is changed, added or deleted? (Required)

Add a link to statement summary tables to help users looking for how to get profiling information in TiDB.

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.

  • master (the latest development version)
  • v7.6 (TiDB 7.6 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.4 (TiDB 7.4 versions)
  • v7.3 (TiDB 7.3 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)
  • v5.3 (TiDB 5.3 versions)
  • v5.2 (TiDB 5.2 versions)
  • v5.1 (TiDB 5.1 versions)
  • v5.0 (TiDB 5.0 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

…tables

Add a link to statement summary tables to help users looking for how to get profiling information in TiDB.
@ti-chi-bot ti-chi-bot bot added contribution This PR is from a community contributor. missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 18, 2024
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jan 18, 2024
@dveeden dveeden requested a review from qiancai January 18, 2024 21:59
@dveeden
Copy link
Contributor

dveeden commented Jan 18, 2024

We could try to come up with a query that mimics SHOW PROFILES.

mysql> SELECT SLEEP(5);
+----------+
| SLEEP(5) |
+----------+
|        0 |
+----------+
1 row in set (5.01 sec)

mysql> SELECT QUERY_SAMPLE_TEXT,AVG_LATENCY FROM information_schema.statements_summary;
+---------------------------------------------------------------------------------+-------------+
| QUERY_SAMPLE_TEXT                                                               | AVG_LATENCY |
+---------------------------------------------------------------------------------+-------------+
| SELECT SLEEP(5)                                                                 |  5000863698 |
| SELECT QUERY_SAMPLE_TEXT,AVG_LATENCY FROM information_schema.statements_summary |      721116 |
| select @@version_comment limit 1                                                |      499801 |
| SELECT * FROM information_schema.statements_summary                             |     1243165 |
+---------------------------------------------------------------------------------+-------------+
4 rows in set (0.00 sec)

@qiancai qiancai self-assigned this Jan 22, 2024
@qiancai qiancai added the translation/doing This PR's assignee is translating this PR. label Jan 22, 2024
@ti-chi-bot ti-chi-bot bot removed the missing-translation-status This PR does not have translation status info. label Jan 22, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jan 22, 2024
Copy link

ti-chi-bot bot commented Jan 22, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-01-18 21:58:13.191518824 +0000 UTC m=+479534.755816530: ☑️ agreed by dveeden.
  • 2024-01-22 02:26:24.414342661 +0000 UTC m=+754825.978640366: ☑️ agreed by qiancai.

@qiancai qiancai added the type/enhancement The issue or PR belongs to an enhancement. label Feb 6, 2024
@qiancai
Copy link
Collaborator

qiancai commented Feb 6, 2024

/approve

Copy link

ti-chi-bot bot commented Feb 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Feb 6, 2024
@qiancai
Copy link
Collaborator

qiancai commented Feb 6, 2024

/retest

@ti-chi-bot ti-chi-bot bot merged commit 79828d6 into pingcap:master Feb 6, 2024
9 checks passed
@qiancai qiancai added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR's assignee is translating this PR. labels Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved contribution This PR is from a community contributor. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants