From 2af25055205c739a93498546560abe7e6178b395 Mon Sep 17 00:00:00 2001 From: Liuxiaozhen12 <82579298+Liuxiaozhen12@users.noreply.github.com> Date: Fri, 3 Sep 2021 10:50:14 +0800 Subject: [PATCH] This is an automated cherry-pick of #6299 Signed-off-by: ti-chi-bot --- system-variables.md | 10 +++++----- tidb-configuration-file.md | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/system-variables.md b/system-variables.md index adff20779c05c..c587dfafd3f92 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1258,34 +1258,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 New in v4.0 - 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 New in v4.0 - 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 New in v4.0 - Scope: SESSION | GLOBAL - Default value: Before v5.1.1, the default value is `200`. Since v5.1.1, the default value is `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 New in v4.0 - 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 New in v3.0.4 and v4.0 diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index f73d567c1d9df..b18965fc2de6f 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -599,6 +599,7 @@ Configuration related to the status of TiDB service. ## stmt-summary New in v3.0.4 +<<<<<<< HEAD Configurations related to the `events_statement_summary_by_digest` table. ### max-stmt-count @@ -609,6 +610,18 @@ Configurations related to the `events_statement_summary_by_digest` table. ### max-sql-length - The longest display length for the `DIGEST_TEXT` and `QUERY_SAMPLE_TEXT` columns in 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 [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 [statement summary tables](/statement-summary-tables.md). +>>>>>>> 7f8909a47 (change expressions related to statement summary tables (#6299)) - Default value: `4096` ## pessimistic-txn