From a27c7fd73c2022f1244dd608bc4ebda3aefa8163 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Wed, 28 Dec 2022 11:30:17 +0800 Subject: [PATCH] v5.3-v5.0: emphasize experimental for stats feedback (#11750) --- statistics.md | 2 +- tidb-configuration-file.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/statistics.md b/statistics.md index e4958c1a9a9b9..3cbac844f737d 100644 --- a/statistics.md +++ b/statistics.md @@ -217,7 +217,7 @@ When the ratio of the number of modified rows to the total number of rows of `tb > > Currently, the automatic update does not record the configuration items input at manual `ANALYZE`. Therefore, when you use the `WITH` syntax to control the collecting behavior of `ANALYZE`, you need to manually set scheduled tasks to collect statistics. -Before v5.0, when the query is executed, TiDB collects feedback with the probability of `feedback-probability` and uses it to update the histogram and Count-Min Sketch. **In v5.0, this feature is disabled by default, and it is not recommended to enable this feature.** +Before v5.0, when the query is executed, TiDB collects feedback with the probability of `feedback-probability` and uses it to update the histogram and Count-Min Sketch. **In the current version, this feature is experimental and disabled by default, and it is not recommended to enable this feature in the production environment.** ### Control `ANALYZE` concurrency diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 29b92b3162d7b..1697ad002c118 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -450,6 +450,10 @@ Configuration items related to performance. ### `feedback-probability` +> **Warning:** +> +> `feedback-probability` is an experimental feature in the current version. It is not recommended to use it in the production environment. + - The probability that TiDB collects the feedback statistics of each query. - Default value: `0` - This feature is disabled by default, and it is not recommended to enable this feature. If it is enabled, TiDB collects the feedback of each query at the probability of `feedback-probability`, to update statistics.