Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,12 @@
+ When the value of `force-init-stats` is `true`, TiDB needs to wait until statistics initialization is finished before providing services upon startup. Note that if there are a large number of tables and partitions and the value of [`lite-init-stats`](/tidb-configuration-file.md#lite-init-stats-new-in-v710) is `false`, setting `force-init-stats` to `true` might prolong the time it takes for TiDB to start providing services.
+ When the value of `force-init-stats` is `false`, TiDB can still provide services before statistics initialization is finished, but the optimizer uses pseudo statistics to make decisions, which might result in suboptimal execution plans.

### skip-init-stats <span class="version-mark">New in v9.0.0</span>

+ Controls whether to skip statistics initialization during TiDB startup.
+ Default value: `false`
+ When the value of `skip-init-stats` is `true`, TiDB skips statistics initialization during startup. This configuration item is useful when you want to quickly start TiDB without waiting for statistics initialization, especially when there are a large number of tables and partitions. **However, this is a very special scenario. In most cases, please never set this configuration item to `true`, otherwise the optimizer might generate suboptimal execution plans due to the lack of statistics.**

Check warning on line 640 in tidb-configuration-file.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.Ambiguous] Consider using a clearer word than 'a large number of' because it may cause confusion. Raw Output: {"message": "[PingCAP.Ambiguous] Consider using a clearer word than 'a large number of' because it may cause confusion.", "location": {"path": "tidb-configuration-file.md", "range": {"start": {"line": 640, "column": 246}}}, "severity": "INFO"}

## opentracing

Configuration items related to opentracing.
Expand Down
Loading