Skip to content

Commit d580659

Browse files
authored
planner: add tidb_enable_binding_usage (#21946)
1 parent fb1c9a2 commit d580659

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

system-variables.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,6 +2090,15 @@ Assume that you have a cluster with 4 TiDB nodes and multiple TiKV nodes. In thi
20902090
- Default value: `OFF`
20912091
- This variable controls whether to enable the deprecated batch-dml feature. When it is enabled, certain statements might be split into multiple transactions, which is non-atomic and should be used with care. When using batch-dml, you must ensure that there are no concurrent operations on the data you are operating on. To make it work, you must also specify a positive value for `tidb_batch_dml_size` and enable at least one of `tidb_batch_insert` and `tidb_batch_delete`.
20922092
2093+
### tidb_enable_binding_usage <span class="version-mark">New in v9.0.0</span>
2094+
2095+
- Scope: GLOBAL
2096+
- Persists to cluster: Yes
2097+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No
2098+
- Type: Boolean
2099+
- Default value: `ON`
2100+
- This variable controls whether to collect the usage statistics of SQL plan bindings. When it is set to `ON`, TiDB writes the usage statistics of SQL plan bindings to the `mysql.bind_info` table every six hours.
2101+
20932102
### tidb_enable_cascades_planner
20942103
20952104
> **Warning:**

0 commit comments

Comments
 (0)