From 838b69269527c422c55b915d279aa5f71aec0433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CEricZequan=E2=80=9D?= Date: Fri, 13 Dec 2024 19:21:26 +0800 Subject: [PATCH 1/4] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “EricZequan” --- optimizer-fix-controls.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 4460cee3c820c..4137c5570d0ed 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -76,3 +76,9 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Default value: `OFF` - Possible values: `ON`, `OFF` - This variable controls whether the optimizer explores enforced plans during query optimization after finding an unenforced plan. + +### [`56318`](https://github.com/pingcap/tidb/issues/56318) New in v7.5.0 + +- Default value: `ON` +- Possible values: `ON`, `OFF` +- This variable controls whether to avoid calculating the heavy expression used in ORDER BY stmt twice。 \ No newline at end of file From a83eb3595b3196bb4df6d55d73f3dfa4fc0e0508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CEricZequan=E2=80=9D?= Date: Fri, 13 Dec 2024 19:25:59 +0800 Subject: [PATCH 2/4] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “EricZequan” --- optimizer-fix-controls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 4137c5570d0ed..eaaf487d5c5ab 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -81,4 +81,4 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Default value: `ON` - Possible values: `ON`, `OFF` -- This variable controls whether to avoid calculating the heavy expression used in ORDER BY stmt twice。 \ No newline at end of file +- This variable controls whether to avoid calculating the heavy expression used in ORDER BY stmt twice. \ No newline at end of file From ea550e18d01f59dcd3017a5800a5bafb08d17e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CEricZequan=E2=80=9D?= Date: Mon, 16 Dec 2024 10:43:36 +0800 Subject: [PATCH 3/4] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “EricZequan” --- optimizer-fix-controls.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index eaaf487d5c5ab..518e3c8f2c7c7 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -77,8 +77,8 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Possible values: `ON`, `OFF` - This variable controls whether the optimizer explores enforced plans during query optimization after finding an unenforced plan. -### [`56318`](https://github.com/pingcap/tidb/issues/56318) New in v7.5.0 +### [`56318`](https://github.com/pingcap/tidb/issues/56318) For TiDB Cloud Serverless - Default value: `ON` - Possible values: `ON`, `OFF` -- This variable controls whether to avoid calculating the heavy expression used in ORDER BY stmt twice. \ No newline at end of file +- This variable controls whether to avoid calculating the heavy expression used in `ORDER BY` stmt twice. \ No newline at end of file From 820d87bdcdba2f2a5bd8bbca2e2e8b60a39a7b9a Mon Sep 17 00:00:00 2001 From: EricZequan <110292382+EricZequan@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:24:55 +0800 Subject: [PATCH 4/4] Apply suggestions from code review Co-authored-by: Aolin --- optimizer-fix-controls.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 518e3c8f2c7c7..2d642c07e0b73 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -77,8 +77,12 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Possible values: `ON`, `OFF` - This variable controls whether the optimizer explores enforced plans during query optimization after finding an unenforced plan. -### [`56318`](https://github.com/pingcap/tidb/issues/56318) For TiDB Cloud Serverless +### [`56318`](https://github.com/pingcap/tidb/issues/56318) + +> **Note:** +> +> This is only available for [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless). - Default value: `ON` - Possible values: `ON`, `OFF` -- This variable controls whether to avoid calculating the heavy expression used in `ORDER BY` stmt twice. \ No newline at end of file +- This variable controls whether to avoid calculating the heavy expression used in the `ORDER BY` statement twice. \ No newline at end of file