meta: make auto id minimum step larger#12873
Merged
sre-bot merged 3 commits intopingcap:masterfrom Oct 22, 2019
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12873 +/- ##
===========================================
Coverage 80.0913% 80.0913%
===========================================
Files 465 465
Lines 107119 107119
===========================================
Hits 85793 85793
Misses 14905 14905
Partials 6421 6421 |
Author
|
/run-all-tests |
Author
|
/run-unit-test |
Contributor
|
/run-all-tests |
Contributor
|
cherry pick to release-2.1 in PR #12891 |
Contributor
|
cherry pick to release-3.1 in PR #12892 |
Contributor
|
cherry pick to release-3.0 in PR #12893 |
sre-bot
added a commit
that referenced
this pull request
Oct 23, 2019
sre-bot
added a commit
that referenced
this pull request
Oct 23, 2019
XiaTianliang
pushed a commit
to XiaTianliang/tidb
that referenced
this pull request
Dec 21, 2019
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 problem does this PR solve?
Originally, the default minimum step of auto id is 1000. This may cause too many transaction for applying auto id when there are many write request suddenly.
What is changed and how it works?
Make minimum step of auto id larger. Every TiDB server will cache at least 30000 auto id.
Check List
Tests
Code changes
Side effects
Related changes
Release note