Skip to content

Commit

Permalink
cherry pick #3895 to release-2.1 (#3901)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: JoyinQ <56883733+Joyinqin@users.noreply.github.com>
  • Loading branch information
ti-srebot and Joyinqin authored Sep 14, 2020
1 parent 2442f6e commit 0428f61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ 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.

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. You can modify the value of `feedback-probability` in the configuration file. The default value is `0.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. You can modify the value of `feedback-probability` in the configuration file. The default value is `0.05`. You can set the value to `0.0` to disable this feature.

> **Note:**
>
> If you set the value of `feedback-probability` to `0` in the configuration file, a failure will occur and an error will be reported. To disable `feedback-probability`, you need to set the value to `0.0`.
### Control `ANALYZE` concurrency

Expand Down

0 comments on commit 0428f61

Please sign in to comment.