From 8dc4fb69b922d0d81d20fa4c916b44a21fcf169c Mon Sep 17 00:00:00 2001 From: Nullnotnil Date: Fri, 3 Jul 2020 15:12:45 -0600 Subject: [PATCH 1/3] faq/tidb-faq.md: update out of date faqs Fixes #2325 --- faq/tidb-faq.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/faq/tidb-faq.md b/faq/tidb-faq.md index 06a5bd226c55a..45d8d653db39b 100644 --- a/faq/tidb-faq.md +++ b/faq/tidb-faq.md @@ -102,7 +102,7 @@ As a standalone database, MySQL can only implement across-database transactions The display content of TiDB `show processlist` is almost the same as that of MySQL `show processlist`. TiDB `show processlist` does not display the system process ID. The ID that it displays is the current session ID. The differences between TiDB `show processlist` and MySQL `show processlist` are as follows: - As TiDB is a distributed database, the `tidb-server` instance is a stateless engine for parsing and executing the SQL statements (for details, see [TiDB architecture](/architecture.md)). `show processlist` displays the session list executed in the `tidb-server` instance that the user logs in to from the MySQL client, not the list of all the sessions running in the cluster. But MySQL is a standalone database and its `show processlist` displays all the SQL statements executed in MySQL. -- TiDB `show processlist` displays the estimated memory usage (unit: Byte) of the current session, which is not displayed in MySQL `show processlist`. +- The `State` column in TiDB is not continually updated during query execution. As TiDB supports parallel query, each statement may be in multiple _states_ at once, and thus it is difficult to simplify to a single value. #### How to modify the user password and privilege? @@ -539,7 +539,7 @@ In the communication process between the TiDB server and the TiKV server, the `S #### What's the maximum number of concurrent connections that TiDB supports? -The current TiDB version has no limit for the maximum number of concurrent connections. If too large concurrency leads to an increase of response time, you can increase the capacity by adding TiDB nodes. +By default, there is no limit on the maximum number of connections per TiDB server. A limit may be enforced by setting `max-server-connections` in the config.toml file. If too large concurrency leads to an increase of response time, it is recommended to increase the capacity by adding TiDB nodes. #### How to view the creation time of a table? @@ -1051,7 +1051,7 @@ From the above results, you can get that the `add index` operation is being proc #### Does TiDB support CBO (Cost-Based Optimization)? If yes, to what extent? -Yes. TiDB uses the cost-based optimizer. The cost model and statistics are constantly optimized. TiDB also supports correlation algorithms like hash join and soft merge. +Yes. TiDB uses the cost-based optimizer. The cost model and statistics are constantly optimized. TiDB also supports join algorithms like hash join and sort merge. #### How to determine whether I need to execute `analyze` on a table? From 507049b4efdb45070820f49d1652e149596f52cc Mon Sep 17 00:00:00 2001 From: Null not nil <67764674+nullnotnil@users.noreply.github.com> Date: Mon, 6 Jul 2020 10:21:05 -0600 Subject: [PATCH 2/3] Update faq/tidb-faq.md Co-authored-by: Zhang Jian --- faq/tidb-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/tidb-faq.md b/faq/tidb-faq.md index 45d8d653db39b..439500d199dea 100644 --- a/faq/tidb-faq.md +++ b/faq/tidb-faq.md @@ -1051,7 +1051,7 @@ From the above results, you can get that the `add index` operation is being proc #### Does TiDB support CBO (Cost-Based Optimization)? If yes, to what extent? -Yes. TiDB uses the cost-based optimizer. The cost model and statistics are constantly optimized. TiDB also supports join algorithms like hash join and sort merge. +Yes. TiDB uses the cost-based optimizer. The cost model and statistics are constantly optimized. TiDB also supports join algorithms like hash join and sort-merge join. #### How to determine whether I need to execute `analyze` on a table? From 94e7d68816e5ba1c33e67ebeb560e3c30993015a Mon Sep 17 00:00:00 2001 From: Null not nil <67764674+nullnotnil@users.noreply.github.com> Date: Mon, 6 Jul 2020 20:23:40 -0600 Subject: [PATCH 3/3] Update faq/tidb-faq.md Co-authored-by: Ran --- faq/tidb-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/tidb-faq.md b/faq/tidb-faq.md index 439500d199dea..7cc6534768288 100644 --- a/faq/tidb-faq.md +++ b/faq/tidb-faq.md @@ -539,7 +539,7 @@ In the communication process between the TiDB server and the TiKV server, the `S #### What's the maximum number of concurrent connections that TiDB supports? -By default, there is no limit on the maximum number of connections per TiDB server. A limit may be enforced by setting `max-server-connections` in the config.toml file. If too large concurrency leads to an increase of response time, it is recommended to increase the capacity by adding TiDB nodes. +By default, there is no limit on the maximum number of connections per TiDB server. A limit may be enforced by setting `max-server-connections` in the `config.toml` file. If too large concurrency leads to an increase of response time, it is recommended to increase the capacity by adding TiDB nodes. #### How to view the creation time of a table?