From d25d57eabb12ce86aea9300157eb48147e7683d8 Mon Sep 17 00:00:00 2001 From: qw4990 Date: Mon, 2 Mar 2026 16:38:38 +0800 Subject: [PATCH 1/3] fixup --- system-variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index dd168da0d23e5..cea41c7a41583 100644 --- a/system-variables.md +++ b/system-variables.md @@ -3475,11 +3475,11 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - Persists to cluster: Yes - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Boolean -- Default value: `OFF` +- Default value: `ON` - This variable controls whether TiDB ignores the element differences in the `IN` list across different queries when generating Plan Digests. - - When it is the default value `OFF`, TiDB does not ignore the element differences (including the difference in the number of elements) in the `IN` list when generating Plan Digests. The element differences in the `IN` list result in different Plan Digests. - - When it is set to `ON`, TiDB ignores the element differences (including the difference in the number of elements) in the `IN` list and uses `...` to replace elements in the `IN` list in Plan Digests. In this case, TiDB generates the same Plan Digests for `IN` queries of the same type. + - When it is set to `OFF`, TiDB does not ignore the element differences (including the difference in the number of elements) in the `IN` list when generating Plan Digests. The element differences in the `IN` list result in different Plan Digests. + - When it is the default value `ON`, TiDB ignores the element differences (including the difference in the number of elements) in the `IN` list and uses `...` to replace elements in the `IN` list in Plan Digests. In this case, TiDB generates the same Plan Digests for `IN` queries of the same type. ### tidb_index_join_batch_size From a2c8189f600a39f6ea24b9763441d6d59585df7e Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Tue, 3 Mar 2026 10:13:38 +0800 Subject: [PATCH 2/3] 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 cea41c7a41583..b50bb307cb50e 100644 --- a/system-variables.md +++ b/system-variables.md @@ -3478,8 +3478,8 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - Default value: `ON` - This variable controls whether TiDB ignores the element differences in the `IN` list across different queries when generating Plan Digests. - - When it is set to `OFF`, TiDB does not ignore the element differences (including the difference in the number of elements) in the `IN` list when generating Plan Digests. The element differences in the `IN` list result in different Plan Digests. - When it is the default value `ON`, TiDB ignores the element differences (including the difference in the number of elements) in the `IN` list and uses `...` to replace elements in the `IN` list in Plan Digests. In this case, TiDB generates the same Plan Digests for `IN` queries of the same type. + - When it is set to `OFF`, TiDB does not ignore the element differences (including the difference in the number of elements) in the `IN` list when generating Plan Digests. The element differences in the `IN` list result in different Plan Digests. ### tidb_index_join_batch_size From 9bb562dc8136ca7161e38b8a33e22306845dcc19 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Wed, 1 Apr 2026 14:41:44 +0800 Subject: [PATCH 3/3] Add description of previous default value --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index b50bb307cb50e..1ecc886186f33 100644 --- a/system-variables.md +++ b/system-variables.md @@ -3475,7 +3475,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - Persists to cluster: Yes - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Boolean -- Default value: `ON` +- Default value: `ON`. Before v8.5.6, the default value is `OFF`. - This variable controls whether TiDB ignores the element differences in the `IN` list across different queries when generating Plan Digests. - When it is the default value `ON`, TiDB ignores the element differences (including the difference in the number of elements) in the `IN` list and uses `...` to replace elements in the `IN` list in Plan Digests. In this case, TiDB generates the same Plan Digests for `IN` queries of the same type.