-
Notifications
You must be signed in to change notification settings - Fork 710
tidb: document analyze v1 removal #22655
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
Open
0xPoe
wants to merge
11
commits into
pingcap:master
Choose a base branch
from
0xPoe:poe-patch-analyze-v1-master-docs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+30
−49
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b541076
statistics: document analyze v1 removal
0xPoe b82e6fb
Update information-schema/information-schema-analyze-status.md
0xPoe 0482877
Update statistics.md
0xPoe 903d4b2
Update statistics.md
0xPoe c3c7ee8
Update system-variables.md
0xPoe a3c919a
Update system-variables.md
0xPoe b99377c
Update system-variables.md
0xPoe d78459f
Update system-variables.md
0xPoe 5b9d855
fix: correct analyze v1 doc links
0xPoe aa61fdd
minor wording updates
qiancai 4c20e7e
Update statistics.md
0xPoe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1181,16 +1181,19 @@ MPP is a distributed computing framework provided by the TiFlash engine, which a | |||||||||
|
|
||||||||||
| ### tidb_analyze_version <span class="version-mark">New in v5.1.0</span> | ||||||||||
|
|
||||||||||
| > **Warning:** | ||||||||||
| > | ||||||||||
| > Starting from v9.0.0, TiDB no longer support using Statistics Version 1 (`tidb_analyze_version = 1`) for new statistics collection. If you try to set this variable to `1`, TiDB returns an error. For more information, see [Versions of statistics](/statistics.md#versions-of-statistics). TiDB still supports reading existing Version 1 statistics for upgrade compatibility, but all new `ANALYZE` operations use Statistics Version 2 (`tidb_analyze_version = 2`). It is recommended that you use `tidb_analyze_version = 2`. | ||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| - Scope: SESSION | GLOBAL | ||||||||||
| - Persists to cluster: Yes | ||||||||||
| - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No | ||||||||||
| - Type: Integer | ||||||||||
| - Default value: `2` | ||||||||||
| - Range: `[1, 2]` | ||||||||||
| - Controls how TiDB collects statistics. | ||||||||||
| - For TiDB Self-Managed, the default value of this variable changes from `1` to `2` starting from v5.3.0. | ||||||||||
| - For TiDB Cloud, the default value of this variable changes from `1` to `2` starting from v6.5.0. | ||||||||||
| - If your cluster is upgraded from an earlier version, the default value of `tidb_analyze_version` does not change after the upgrade. | ||||||||||
| - For TiDB Self-Managed, the default value of this variable changed from `1` to `2` starting from v5.3.0. | ||||||||||
| - For TiDB Cloud, the default value of this variable changed from `1` to `2` starting from v6.5.0. | ||||||||||
|
Comment on lines
+1194
to
+1195
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| - When you upgrade a cluster that still persists `tidb_analyze_version = 1`, TiDB rewrites the persisted global value to `2` during upgrade. Note that after the upgrade, the existing Version 1 statistics are not converted to Version 2 statistics automatically. It is recommended that you [migrate existing objects that use Statistics Version 1 to Version 2](/statistics.md#switch-between-statistics-versions). | ||||||||||
| - For detailed introduction about this variable, see [Introduction to Statistics](/statistics.md). | ||||||||||
|
|
||||||||||
| ### tidb_analyze_skip_column_types <span class="version-mark">New in v7.2.0</span> | ||||||||||
|
|
||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.