From 453861feff503074ae04411a25284ab78680ac99 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Thu, 5 Dec 2024 16:58:41 +0800 Subject: [PATCH] Update optimizer-fix-controls.md (#19515) (#19589) --- optimizer-fix-controls.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index f34129f868181..33867def7e503 100644 --- a/optimizer-fix-controls.md +++ b/optimizer-fix-controls.md @@ -95,3 +95,10 @@ SET SESSION tidb_opt_fix_control = '44262:ON,44389:ON'; - Possible values: `ON`, `OFF` - As stated in the **Note** of [Explain Statements Using Index Merge](/explain-index-merge.md#examples), if the optimizer can choose the single index scan method (other than full table scan) for a query plan, the optimizer will not automatically use index merge. - You can remove this limitation by enabling this fix control. Removing this limitation enables the optimizer to choose index merge automatically in more queries, but might cause the optimizer to ignore the optimal execution plans. Therefore, it is recommended to conduct sufficient tests on actual use cases before removing this limitation to make sure that it will not cause performance regressions. + +### [`54337`](https://github.com/pingcap/tidb/issues/54337) New in v8.2.0 + +- Default value: `OFF` +- Possible values: `ON`, `OFF` +- Currently, the TiDB optimizer has limitations in deriving index ranges for complex conjunctive conditions where each conjunct comprises a list of ranges. This can be addressed by applying general range intersection. +- You can remove this limitation by enabling this fix control, allowing the optimizer to handle complex range intersections. However, for conditions with a large number of conjuncts (more than 10), there is a slight risk of increased optimization time.