Skip to content

Commit 820992a

Browse files
authored
add tidb_optimizer_selectivity_level
1 parent 3b6bf16 commit 820992a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

system-variables.md

+8
Original file line numberDiff line numberDiff line change
@@ -2520,6 +2520,14 @@ explain select * from t where age=5;
25202520
- Default value: `OFF`
25212521
- This variable is used to control whether common table expressions (CTEs) in the entire session are inlined or not. The default value is `OFF`, which means that inlining CTE is not enforced by default. However, you can still inline CTE by specifying the `MERGE()` hint. If the variable is set to `ON`, all CTEs (except recursive CTE) in this session are forced to be inlined.
25222522
2523+
### tidb_optimizer_selectivity_level
2524+
2525+
- Scope: SESSION | GLOBAL
2526+
- Persists to cluster: Yes
2527+
- Default value: `1`
2528+
- Value options: `1` and `2` (not recommended)
2529+
- This variable controls the iteration of the optimizer's estimation logic. After changing the value of this variable, the estimation logic of the optimizer will change greatly. Currently, `1` is the only valid value. It is not recommended to set the value to `2`.
2530+
25232531
### tidb_partition_prune_mode <span class="version-mark">New in v5.1</span>
25242532
25252533
- Scope: SESSION | GLOBAL

0 commit comments

Comments
 (0)