-
Notifications
You must be signed in to change notification settings - Fork 690
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
faq: add some faqs to documentation #10061
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/verify |
faq/manage-cluster-faq.md
Outdated
|
||
You can use [Placement Rules](/placement-rules-in-sql.md) to specify the location of data for compliance or multi-tenant applications. | ||
|
||
Placement Rules in SQL is designed to control the attributes of any continuous data range, such as the number of replicas, the Raft role, the placement location, abd the key ranges in which the rules take effect. |
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.
Typo: abd
-> and
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.
Placement Rules in SQL is designed to control the attributes of any continuous data range, such as the number of replicas, the Raft role, the placement location, abd the key ranges in which the rules take effect. | |
Placement Rules in SQL is designed to control the attributes of any continuous data range, such as the number of replicas, the Raft role, the placement location, and the key ranges in which the rules take effect. |
faq/sql-faq.md
Outdated
@@ -7,6 +7,28 @@ summary: Learn about the FAQs related to TiDB SQL. | |||
|
|||
This document summarizes the FAQs related to SQL operations in TiDB. | |||
|
|||
## Does TiDB support secondary key? | |||
|
|||
Yes. If a column in TiDB meets all of the following conditions, it can work as a secondary key: |
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.
Better not to answer this question in this way. Secondary key is not a formal terminology, but an ability to access specific row quickly by a column other than primary key. In TiDB, we can achieve it by secondary index with not null constraint.
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.
addressed
faq/sql-faq.md
Outdated
|
||
For some DDL operations such as adding columns, deleting columns or dropping indexes, TiDB can perform these operations quickly. | ||
|
||
For some heavy DDL operations such as adding indexes, TiDB needs to backfill data, which takes a longer time (depending on the size of the table) and consumes additional resources. The impact on online traffic is tunable. TiDB can do the backfill with multiple threads, and you can tune the number of threads. |
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.
It's better to replace , and you can tune the number of threads
with , the amount of thread is set by variables
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.
addressed
faq/sql-faq.md
Outdated
@@ -285,6 +307,17 @@ Generally the input data of `root task` comes from `cop task`; when `root task` | |||
|
|||
See [The TiDB Command Options](/command-line-flags-for-tidb-configuration.md). | |||
|
|||
### How to avoid hotspot issues and achieve load balancing? Is hot partition or range an issue in TiDB? | |||
|
|||
To learn the scenarios that cause hotspots, refer to [common hotpots](/troubleshoot-hot-spot-issues.md#common-hotspots). To resolve hotspot issues, you can use the following built-in TiDB features: |
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.
The solutions of hotspot issues depends on the various causes. It's not guaranteed the given solutions resolve all problems. So we can say TiDB provides a few built-in features to resolve hotspot issues.. instead of saying the issues have to be resolved by these built-in features.
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.
addressed
Co-authored-by: Lilian Lee <lilin@pingcap.com>
Co-authored-by: Lilian Lee <lilin@pingcap.com>
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
/verify |
/remove-status LGT1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 1259ec6
|
In response to a cherrypick label: new pull request created: #10149. |
In response to a cherrypick label: new pull request created: #10150. |
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.
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?