Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`. 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 `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 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

The phrasing 'When it is the default value ON' is wordy. Consider using a more concise structure to improve readability, following the principle of avoiding unnecessary words (Style Guide Rule 24).

Suggested change
- 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 set to ON (default), 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.
References
  1. Avoid unnecessary words and repetition. (link)

- 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

For consistency and conciseness, consider simplifying the phrasing here as well (Style Guide Rule 24).

Suggested change
- 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 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.
References
  1. Avoid unnecessary words and repetition. (link)


### tidb_index_join_batch_size

Expand Down
Loading