diff --git a/optimizer-fix-controls.md b/optimizer-fix-controls.md index 83a31304307d9..ca25bd1dfebcc 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.