From d2f4b6fb40ccc4cfd43a8bd45702520c1ec946f4 Mon Sep 17 00:00:00 2001 From: Ran Date: Tue, 14 Jun 2022 13:41:31 +0800 Subject: [PATCH 1/3] add vale rule to check chinese punctuation Signed-off-by: Ran --- styles/PingCAP/ZhPunctuation.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 styles/PingCAP/ZhPunctuation.yml diff --git a/styles/PingCAP/ZhPunctuation.yml b/styles/PingCAP/ZhPunctuation.yml new file mode 100644 index 0000000000000..31211db49a3a1 --- /dev/null +++ b/styles/PingCAP/ZhPunctuation.yml @@ -0,0 +1,7 @@ +extends: existence +message: "Don't use Chinese punctuation (%s)in English text." +nonword: true +level: error +tokens: + #- '\w!(?:\s|$)' + - '!|?|,|。|:|;|“|”|’|‘' \ No newline at end of file From b26acee9db00980bfadb05e4421f71557db66660 Mon Sep 17 00:00:00 2001 From: Ran Date: Tue, 14 Jun 2022 13:44:27 +0800 Subject: [PATCH 2/3] add test file Signed-off-by: Ran --- styles/PingCAP/ZhPunctuation.yml | 4 ++-- test-file.md | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 test-file.md diff --git a/styles/PingCAP/ZhPunctuation.yml b/styles/PingCAP/ZhPunctuation.yml index 31211db49a3a1..1bdbd1b36f9c3 100644 --- a/styles/PingCAP/ZhPunctuation.yml +++ b/styles/PingCAP/ZhPunctuation.yml @@ -1,7 +1,7 @@ extends: existence -message: "Don't use Chinese punctuation (%s)in English text." +message: "Don't use Chinese punctuation (%s) in English text." nonword: true level: error tokens: #- '\w!(?:\s|$)' - - '!|?|,|。|:|;|“|”|’|‘' \ No newline at end of file + - '!|?|,|。|:|;|“|”|’|‘' \ No newline at end of file diff --git a/test-file.md b/test-file.md new file mode 100644 index 0000000000000..061edd882a638 --- /dev/null +++ b/test-file.md @@ -0,0 +1,13 @@ +--- +title: Analyze Slow Queries +summary: Learn how to locate and analyze slow queries. +--- + +# Analyze Slow Queries + +To address the issue of slow queries,you need to take the following two steps: + +1. Among many queries, identify which type of queries are slow. +2. Analyze why this type of queries are slow. + +You can easily perform step 1 using the [slow query log](/dashboard/dashboard-slow-query.md) and the [statement summary table](/statement-summary-tables.md) features. It is recommended to use [TiDB Dashboard](/dashboard/dashboard-intro.md), which integrates the two features and directly displays the slow queries in your browser。 From c7c455f3e2175994a4006ce4e99a09c8be3e84f1 Mon Sep 17 00:00:00 2001 From: Ran Date: Tue, 14 Jun 2022 13:50:29 +0800 Subject: [PATCH 3/3] Delete test-file.md --- test-file.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 test-file.md diff --git a/test-file.md b/test-file.md deleted file mode 100644 index 061edd882a638..0000000000000 --- a/test-file.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Analyze Slow Queries -summary: Learn how to locate and analyze slow queries. ---- - -# Analyze Slow Queries - -To address the issue of slow queries,you need to take the following two steps: - -1. Among many queries, identify which type of queries are slow. -2. Analyze why this type of queries are slow. - -You can easily perform step 1 using the [slow query log](/dashboard/dashboard-slow-query.md) and the [statement summary table](/statement-summary-tables.md) features. It is recommended to use [TiDB Dashboard](/dashboard/dashboard-intro.md), which integrates the two features and directly displays the slow queries in your browser。