diff --git a/system-variables.md b/system-variables.md index c565d38bdafeb..693cd89da11d7 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1212,8 +1212,8 @@ mysql> SELECT job_info FROM mysql.analyze_jobs ORDER BY end_time DESC LIMIT 1; - Scope: GLOBAL - Persists to cluster: Yes - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No -- Default value: `128`. Before v7.6.0, the default value is `1`. -- Range: `[1, 1024]` +- Default value: `8192`. Before v7.6.0, the default value is `1`. Starting from v8.2.0, the default value is changed from `1024` to `8192`. +- Range: `[1, 8192]`. Before v8.2.0, the value range is `[1, 1024]`. - This variable specifies the number of partitions that TiDB [automatically analyzes](/statistics.md#automatic-update) when analyzing a partitioned table (which means automatically collecting statistics on a partitioned table). - If the value of this variable is smaller than the number of partitions, TiDB automatically analyzes all partitions of the partitioned table in multiple batches. If the value of this variable is greater than or equal to the number of partitions, TiDB analyzes all partitions of the partitioned table at the same time. - If the number of partitions of a partitioned table is far greater than this variable value and the auto-analyze takes a long time, you can increase the value of this variable to reduce the time consumption.