auto-increment: change "continuous" to monotonic#4449
Merged
Conversation
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
Contributor
1 similar comment
Contributor
Contributor
Author
Contributor
2 similar comments
Contributor
Contributor
ti-srebot
approved these changes
Sep 24, 2020
Contributor
|
/run-all-tests |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Sep 24, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
9 tasks
Contributor
|
cherry pick to release-4.0 in PR #4587 |
TomShawn
added a commit
that referenced
this pull request
Sep 24, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What is changed, added or deleted? (Required)
The AUTO_INCREMENT doc used the word "continuous" when it should be "monotonic". Continuous means "without any abrupt changes", i.e. at a constant rate (which could be up or down). Auto_increment is not really constant - since restarts could make values jump quite a bit. So could requesting a new batch of cached values.
Monotonic means "either never decreases or never increases". Which is the property it guarantees on a per-server basis.
The language will need version-specific changes because it says "30 thousand by default", but it needs to be 30 thousand explicitly for 2.1 which does not support AUTO_ID_CACHE.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?