From afcdea2d13205da04c6ef3a079b4f9d6e5cd599c Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 11 Oct 2022 19:18:37 +0800 Subject: [PATCH 1/2] sysvar: fix wrong variables names --- system-variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index bc1e8a99ab88d..27f576bc956da 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2398,7 +2398,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - This variable is used to set whether the optimizer executes the optimization operation of pushing down the aggregate function to the position before Join, Projection, and UnionAll. - When the aggregate operation is slow in query, you can set the variable value to ON. -### tidb_opt_cartesian_bcj +### tidb_opt_broadcast_cartesian_join - Scope: SESSION | GLOBAL - Persists to cluster: Yes @@ -2418,7 +2418,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - Default value: `3.0` - Indicates the CPU cost of starting a Golang goroutine in TiDB. This variable is internally used in the [Cost Model](/cost-model.md), and it is **NOT** recommended to modify its value. -### tidb_opt_cop_cpu_factor +### tidb_opt_copcpu_factor - Scope: SESSION | GLOBAL - Persists to cluster: Yes @@ -2458,7 +2458,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - Default value: `3.0` - Indicates the CPU cost for TiDB to process one row. This variable is internally used in the [Cost Model](/cost-model.md), and it is **NOT** recommended to modify its value. -### tidb_opt_desc_scan_factor +### tidb_opt_desc_factor - Scope: SESSION | GLOBAL - Persists to cluster: Yes From b0fdab8e454dc25c5f85153b0653e35e138f7ae2 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 11 Oct 2022 19:20:11 +0800 Subject: [PATCH 2/2] Update system-variables.md --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 27f576bc956da..9f6acb9c29fb8 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2569,7 +2569,7 @@ mysql> desc select count(distinct a) from test.t; - Scope: SESSION | GLOBAL - Persists to cluster: Yes - Type: Boolean -- Default value: `ON` +- Default value: `OFF` - When the variable value is `ON`, the left join operator always uses inner table as the build side and the right join operator always uses outer table as the build side. If you set the value to `OFF`, the outer join operator can use either side of the tables as the build side. ### tidb_opt_network_factor