From 76280111f341c9fd2a969dee3d273f23a656f4d2 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Tue, 21 Oct 2025 10:59:54 +0800 Subject: [PATCH 1/2] update Signed-off-by: Weizhen Wang --- system-variables.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system-variables.md b/system-variables.md index 88ed5208a8311..0f9b6c4a2ba08 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1937,6 +1937,15 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1; - Default value: `OFF` - 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`. +### tidb_enable_binding_usage New in v9.0.0 + +- Scope: GLOBAL +- Persists to cluster: Yes +- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No +- Type: Boolean +- Default value: `ON` +- This variable is used to control whether to enable the usage statistics collection for SQL plan bindings. Every six hours, the usage of bindinfo will be written into TiKV. + ### tidb_enable_cascades_planner > **Warning:** From da85c3c2344fd199dc803df5e7eea37688986a42 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Tue, 21 Oct 2025 11:01:52 +0800 Subject: [PATCH 2/2] Update system-variables.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 0f9b6c4a2ba08..0271c583a335a 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1944,7 +1944,7 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1; - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Boolean - Default value: `ON` -- This variable is used to control whether to enable the usage statistics collection for SQL plan bindings. Every six hours, the usage of bindinfo will be written into TiKV. +- This variable controls whether to enable the usage statistics collection for SQL plan bindings. When this variable is enabled, TiDB writes the usage information of SQL plan bindings to TiKV every six hours. ### tidb_enable_cascades_planner