Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0/reference, v2.1/reference, dev/reference: update stats related configuration #1526

Merged
merged 20 commits into from
Jul 23, 2019
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4501f45
dev/reference: update stats related configuration
alivxxx Jun 27, 2019
053d417
Apply suggestions from code review
alivxxx Jul 5, 2019
d461b23
Merge branch 'master' of github.com:pingcap/docs-cn into stats
alivxxx Jul 5, 2019
322cf75
address comments
alivxxx Jul 5, 2019
7951710
Merge branch 'master' of https://github.com/pingcap/docs-cn into pr/1526
Jul 10, 2019
94520b6
fix a link issue
Jul 10, 2019
a3b05a6
Apply suggestions from code review
alivxxx Jul 11, 2019
26b7907
Merge branch 'master' of github.com:pingcap/docs-cn into stats
alivxxx Jul 11, 2019
869ac7d
fix lint
alivxxx Jul 11, 2019
7389297
Apply suggestions from code review
alivxxx Jul 12, 2019
fb8bc5d
Merge branch 'master' of https://github.com/pingcap/docs-cn into pr/1526
Jul 12, 2019
8d1549b
Merge branch 'master' of github.com:pingcap/docs-cn into stats
alivxxx Jul 12, 2019
b0d90c9
Merge branch 'stats' of github.com:lamxTyler/docs-cn into stats
alivxxx Jul 12, 2019
9cddf10
Apply suggestions from code review
alivxxx Jul 12, 2019
8a4e5d9
address comments
alivxxx Jul 23, 2019
8ac5807
Merge branch 'stats' of github.com:lamxTyler/docs-cn into stats
alivxxx Jul 23, 2019
8a24fd3
Merge branch 'master' of github.com:pingcap/docs-cn into stats
alivxxx Jul 23, 2019
43f424f
remove an extra line about markdownlint
Jul 23, 2019
707ab8b
Merge branch 'stats' of https://github.com/lamxTyler/docs-cn into pr/…
Jul 23, 2019
1ef9cf2
add markdownlint-disable MD001
Jul 23, 2019
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
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-Authored-By: Keke Yi <[email protected]>
  • Loading branch information
alivxxx and yikeke authored Jul 11, 2019
commit a3b05a6bf4c5e9b343a96bbb92ff55c8f2dbd1ee
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,12 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/

### `enable-update-stats`

> 注:该配置项由 2.1.13 版本中引入,仅在 TiDB 版本大于等于 v2.1.13 的 2.1 版本中支持。
> **注意:**
>
> 该配置项由 2.1.13 版本中引入,仅在 TiDB 版本大于等于 v2.1.13 的 2.1 版本中支持。

+ TiDB 是否做统计信息更新相关操作,例如维护总行数和修改行数,自动 analyze 以及 feedback 等。
+ 默认: true
+ 默认:true
+ 由于统计信息更新操作的周期由 `stats-lease` 决定,因此该参数只在 `stats-lease` 不为 0 的情况下生效。当 enable-update-stats 为 false 时,TiDB 不再自动修改这些表:
- `mysql.stats_meta`:TiDB 不再自动记录事务中对某张表的修改行数,也不会更新到这个系统表中
- `mysql.stats_histograms` 和 `mysql.stats_buckets`:TiDB 不再自动 Analyze,主动更新统计信息
Expand Down