Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change expressions related to statement summary tables #6299

Merged
merged 1 commit into from
Sep 3, 2021
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -1278,34 +1278,34 @@ SET tidb_slow_log_threshold = 200;
- Scope: SESSION | GLOBAL
- Default value: `24`
- Range: `[0, 255]`
- This variable is used to set the history capacity of the statement summary.
- This variable is used to set the history capacity of [statement summary tables](/statement-summary-tables.md).

### tidb_stmt_summary_internal_query <span class="version-mark">New in v4.0</span>

- Scope: SESSION | GLOBAL
- Default value: `OFF`
- This variable is used to control whether to include the SQL information of TiDB in the statement summary.
- This variable is used to control whether to include the SQL information of TiDB in [statement summary tables](/statement-summary-tables.md).

### tidb_stmt_summary_max_sql_length <span class="version-mark">New in v4.0</span>

- Scope: SESSION | GLOBAL
- Default value: `4096`
- Range: `[0, 2147483647]`
- This variable is used to control the length of the SQL string in the statement summary.
- This variable is used to control the length of the SQL string in [statement summary tables](/statement-summary-tables.md).

### tidb_stmt_summary_max_stmt_count <span class="version-mark">New in v4.0</span>

- Scope: SESSION | GLOBAL
- Default value: `3000`
- Range: `[1, 32767]`
- This variable is used to set the maximum number of statements that the statement summary stores in memory.
- This variable is used to set the maximum number of statements that [statement summary tables](/statement-summary-tables.md) store in memory.

### tidb_stmt_summary_refresh_interval <span class="version-mark">New in v4.0</span>

- Scope: SESSION | GLOBAL
- Default value: `1800`
- Range: `[1, 2147483647]`
- This variable is used to set the refresh time of the statement summary. The unit is second.
- This variable is used to set the refresh time of [statement summary tables](/statement-summary-tables.md). The unit is second.

### tidb_store_limit <span class="version-mark">New in v3.0.4 and v4.0</span>

Expand Down
6 changes: 3 additions & 3 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,16 +610,16 @@ Configuration related to the status of TiDB service.

## stmt-summary <span class="version-mark">New in v3.0.4</span>

Configurations related to the `statements_summary` table.
Configurations related to [statement summary tables](/statement-summary-tables.md).

### max-stmt-count

- The maximum number of SQL categories allowed to be saved in the `statements_summary` table.
- The maximum number of SQL categories allowed to be saved in [statement summary tables](/statement-summary-tables.md).
- Default value: `3000`

### max-sql-length

- The longest display length for the `DIGEST_TEXT` and `QUERY_SAMPLE_TEXT` columns in the `statements_summary` table.
- The longest display length for the `DIGEST_TEXT` and `QUERY_SAMPLE_TEXT` columns in [statement summary tables](/statement-summary-tables.md).
- Default value: `4096`

## pessimistic-txn
Expand Down