Skip to content

Commit

Permalink
change expressions related to statement summary tables (#6299) (#6383)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Sep 3, 2021
1 parent 9b55e18 commit 15b1b94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,31 +805,31 @@ SET tidb_slow_log_threshold = 200;
- Scope: SESSION | GLOBAL
- Default value: 24 (the value of the default configuration file)
- 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: 0 (the value of the default configuration file)
- 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 (the value of the default configuration file)
- 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: Before v4.0.14, the default value is 200. Since v4.0.14, the default value is 3000 (the value of the default configuration file).
- 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 (the value of the default configuration file)
- 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
8 changes: 4 additions & 4 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,16 +569,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 `events_statement_summary_by_digest` 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 `events_statement_summary_by_digest` table.
- Default value: `100`
- The maximum number of SQL categories allowed to be saved in [statement summary tables](/statement-summary-tables.md).
- Default value: Before v4.0.14, the default value is `200`. Since v4.0.14, the default value is `3000`.

### max-sql-length

- The longest display length for the `DIGEST_TEXT` and `QUERY_SAMPLE_TEXT` columns in the `events_statement_summary_by_digest` 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

0 comments on commit 15b1b94

Please sign in to comment.