From 8d53a8cc0bf2609bdc8df8eaa185a530b02b2938 Mon Sep 17 00:00:00 2001 From: qw4990 Date: Mon, 2 Mar 2026 16:38:38 +0800 Subject: [PATCH 1/2] fixup --- system-variables.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index 79af0db79a694..47eb0a9582138 100644 --- a/system-variables.md +++ b/system-variables.md @@ -3503,11 +3503,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 80164e170d17cdb2ac86f2fc16ec257b1d9e5d0d Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Tue, 3 Mar 2026 10:13:38 +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 47eb0a9582138..d014c5b266c6e 100644 --- a/system-variables.md +++ b/system-variables.md @@ -3506,8 +3506,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