Skip to content

Commit

Permalink
[v6.5.7] add configuration performance.force-init-stats (#13840) (#15986
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ti-chi-bot authored Jan 8, 2024
1 parent bc6a307 commit 4caae18
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,13 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/
+ 用于控制 TiDB 是否开启统计信息缓存的内存上限。
+ 默认值:false

### `force-init-stats` <span class="version-mark">从 v6.5.7 版本开始引入</span>

+ 用于控制 TiDB 启动时是否在统计信息初始化完成后再对外提供服务。
+ 默认值:false
+`force-init-stats``true` 时,TiDB 启动时会等到统计信息初始化完成后再对外提供服务。在表和分区数量较多的情况下,将 `force-init-stats` 设置为 `true` 可能会导致 TiDB 从启动到开始对外提供服务的时间变长。
+`force-init-stats``false` 时,TiDB 在统计信息初始化未完成时即可对外提供服务,但由于统计信息初始化未完成,优化器会用 pseudo 统计信息进行决策,可能会产生不合理的执行计划。

## opentracing

opentracing 的相关的设置。
Expand Down

0 comments on commit 4caae18

Please sign in to comment.