Skip to content

Conversation

@huoyao1125
Copy link

@huoyao1125 huoyao1125 commented Nov 28, 2025

First-time contributors' checklist

What is changed, added or deleted? (Required)

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)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 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)

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

@ti-chi-bot ti-chi-bot bot added contribution This PR is from a community contributor. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. labels Nov 28, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 28, 2025

Hi @huoyao1125. Thanks for your PR.

I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added the needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. label Nov 28, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @huoyao1125, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request adds a new documentation page, "tune-performance-premium.md", which serves as a comprehensive guide for users of TiDB Cloud Premium instances. The document outlines how to effectively analyze and tune database performance by leveraging the platform's built-in Slow Query and SQL Statement features, providing clear steps for navigation and usage of these diagnostic tools.

Highlights

  • New Documentation: Introduces a new Markdown document, "tune-performance-premium.md", to guide users on analyzing and tuning performance for TiDB Cloud Premium instances.
  • Slow Query Feature: Provides detailed instructions on how to use the Slow Query feature, including navigation, viewing details, and filtering options.
  • SQL Statement Feature: Offers a step-by-step guide on utilizing the SQL Statement feature for performance analysis, covering navigation, detailed execution information, time period selection, and schema filtering.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@ti-chi-bot ti-chi-bot bot added missing-translation-status This PR does not have translation status info. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 28, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new documentation page for analyzing and tuning performance on TiDB Cloud Premium Instances. The document is well-structured, but I have a few suggestions to improve clarity, consistency, and fix a broken link. My feedback focuses on standardizing terminology, correcting navigation steps to make them easier to follow, and rephrasing some sentences for better readability, in accordance with the repository's style guide.


# Analyze and Tune Performance for Premium instances

TiDB Cloud provides [Slow Query](#slow-query), [SQL Statement](#statement-analysis) to analyze performance.

Choose a reason for hiding this comment

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

medium

The link anchor for 'SQL Statement' is incorrect. The heading ## SQL Statement generates an anchor #sql-statement, not #statement-analysis, which results in a broken link. I've corrected the link and also made the feature names bold for emphasis, which is consistent with other documentation pages.

Suggested change
TiDB Cloud provides [Slow Query](#slow-query), [SQL Statement](#statement-analysis) to analyze performance.
TiDB Cloud provides [**Slow Query**](#slow-query) and [**SQL Statement**](#sql-statement) to help you analyze performance.

>
> You can use the combo box in the upper-left corner to switch between organizations and Premium instances.
2. In the left navigation pane, click **Monitoring**.

Choose a reason for hiding this comment

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

medium

This step is a bit confusing. The section heading is 'View the Diagnosis page', but this step instructs the user to click 'Monitoring' and stops there. To avoid confusion and guide the user correctly, it would be clearer to direct them to the 'Diagnosis' page itself.

Suggested change
2. In the left navigation pane, click **Monitoring**.
2. In the left navigation pane, click **Diagnosis**.


To view slow queries in a TiDB Instance, perform the following steps:

1. Navigate and click the **Slow Query** page of a TiDB instance.

Choose a reason for hiding this comment

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

medium

The instruction 'Navigate and click' is vague. To create a clearer, step-by-step flow from the previous section, it's better to specify that the user should now be on the 'Diagnosis' page and should select the 'Slow Query' tab.

Suggested change
1. Navigate and click the **Slow Query** page of a TiDB instance.
1. On the **Diagnosis** page, select the **Slow Query** tab.


To use the SQL Statement, perform the following steps:

1. Navigate and click the **SQL Statement** page of a TiDB instance.

Choose a reason for hiding this comment

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

medium

Similar to the 'Slow Query' section, this instruction is vague. It would be clearer to guide the user from the 'Diagnosis' page to create a more logical flow.

Suggested change
1. Navigate and click the **SQL Statement** page of a TiDB instance.
1. On the **Diagnosis** page, select the **SQL Statement** tab.

@@ -0,0 +1,52 @@
---
title: Analyze and Tune Performance for Premium instances

Choose a reason for hiding this comment

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

low

For consistency with the summary and to better reflect that this guide describes steps for a single instance, I suggest using the singular form 'Instance'.

Suggested change
title: Analyze and Tune Performance for Premium instances
title: Analyze and Tune Performance for a Premium Instance

aliases: ['/tidbcloud/index-insight']
---

# Analyze and Tune Performance for Premium instances

Choose a reason for hiding this comment

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

low

For consistency with the updated title, let's also use the singular form in the main heading.

Suggested change
# Analyze and Tune Performance for Premium instances
# Analyze and Tune Performance for a Premium Instance


## View the Diagnosis page

1. On the [**TiDB Instances**](https://tidbcloud.com/tidbs) page of your Organization, click the name of your target instance to go to its overview page.

Choose a reason for hiding this comment

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

low

For terminological consistency, it's best to capitalize 'Instance' when referring to a TiDB Cloud Instance, as seen with 'Premium Instance' elsewhere in the document.

Suggested change
1. On the [**TiDB Instances**](https://tidbcloud.com/tidbs) page of your Organization, click the name of your target instance to go to its overview page.
1. On the [**TiDB Instances**](https://tidbcloud.com/tidbs) page of your Organization, click the name of your target Instance to go to its overview page.


> **Tip:**
>
> You can use the combo box in the upper-left corner to switch between organizations and Premium instances.

Choose a reason for hiding this comment

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

low

For consistency, 'Premium Instances' should be capitalized as a proper noun.

Suggested change
> You can use the combo box in the upper-left corner to switch between organizations and Premium instances.
> You can use the combo box in the upper-left corner to switch between organizations and Premium Instances.


2. Click any SQL Statement in the list to display its detailed execution information.

3. Select the time period to be analyzed in the time interval box. Then you can get the execution statistics of SQL statements of all databases in this period.

Choose a reason for hiding this comment

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

low

This sentence can be rephrased to be more direct and active, which is recommended by the style guide.1

Suggested change
3. Select the time period to be analyzed in the time interval box. Then you can get the execution statistics of SQL statements of all databases in this period.
3. Select a time range in the time interval box to get the execution statistics of SQL statements for all databases in that period.

Style Guide References

Footnotes

  1. Prefer active voice and avoid unnecessary words.


3. Select the time period to be analyzed in the time interval box. Then you can get the execution statistics of SQL statements of all databases in this period.

4. (Optional) If you only care about certain databases, you can select the corresponding schema(s) in the next box to filter the results.

Choose a reason for hiding this comment

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

low

The phrasing 'if you only care about' is a bit informal, and 'in the next box' is vague. Let's rephrase for better clarity and a more professional tone, as recommended by the style guide.1

Suggested change
4. (Optional) If you only care about certain databases, you can select the corresponding schema(s) in the next box to filter the results.
4. (Optional) If you are interested in only certain databases, you can select the corresponding schema(s) to filter the results.

Style Guide References

Footnotes

  1. Avoid unclear step instructions.

@lilin90 lilin90 added the translation/no-need No need to translate this PR. label Dec 1, 2025
@ti-chi-bot ti-chi-bot bot removed the missing-translation-status This PR does not have translation status info. label Dec 1, 2025
@lilin90 lilin90 changed the title Create tune-performance-premium.md premium: add tuning performance Dec 1, 2025
@Oreoxmt
Copy link
Collaborator

Oreoxmt commented Dec 1, 2025

/cc @Oreoxmt

@ti-chi-bot ti-chi-bot bot requested a review from Oreoxmt December 1, 2025 06:52
@ti-chi-bot
Copy link

ti-chi-bot bot commented Dec 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from oreoxmt. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found 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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 1, 2025
@Oreoxmt Oreoxmt added area/tidb-cloud This PR relates to the area of TiDB Cloud. for-cloud-release This PR is related to TiDB Cloud release. labels Dec 1, 2025
@Oreoxmt
Copy link
Collaborator

Oreoxmt commented Dec 1, 2025

/ok-to-test

@ti-chi-bot ti-chi-bot bot added ok-to-test Indicates a PR is ready to be tested. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 1, 2025
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 1, 2025
Copy link
Author

@huoyao1125 huoyao1125 left a comment

Choose a reason for hiding this comment

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

LGTM

@Oreoxmt
Copy link
Collaborator

Oreoxmt commented Dec 2, 2025

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 2, 2025
@lilin90 lilin90 requested a review from wildpcww December 2, 2025 09:29
@ti-chi-bot
Copy link

ti-chi-bot bot commented Dec 2, 2025

@wildpcww: 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-sigs/prow repository.

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

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 2, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Dec 2, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-12-01 08:28:55.076264635 +0000 UTC m=+252079.890042207: ☑️ agreed by Oreoxmt.
  • 2025-12-02 10:14:15.296079466 +0000 UTC m=+344800.109857038: ☑️ agreed by lilin90.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tidb-cloud This PR relates to the area of TiDB Cloud. contribution This PR is from a community contributor. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. for-cloud-release This PR is related to TiDB Cloud release. lgtm ok-to-test Indicates a PR is ready to be tested. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants