From 5bee32e297822f44c42b6ee11f7bfd70b16b61a2 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 9a4337e5e1885..f3bc344023669 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2397,7 +2397,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 @@ -2417,7 +2417,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 @@ -2457,7 +2457,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 b4905c577950a0f441952cbdaf5afe84cd3fd781 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 f3bc344023669..f3e5da39dc7b2 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2568,7 +2568,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