Skip to content

Commit

Permalink
v5.3-v5.0: emphasize experimental for stats feedback (#11750) (#11759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 28, 2022
1 parent f3275cf commit 61b39d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Three system variables related to automatic update of statistics are as follows:

When the ratio of the number of modified rows to the total number of rows of `tbl` in a table is greater than `tidb_auto_analyze_ratio`, and the current time is between `tidb_auto_analyze_start_time` and `tidb_auto_analyze_end_time`, TiDB executes the `ANALYZE TABLE tbl` statement in the background to automatically update the statistics of this table.

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

Expand Down
4 changes: 4 additions & 0 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,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.
Expand Down

0 comments on commit 61b39d6

Please sign in to comment.