-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
meta: make auto id minimum step larger #12873
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 |
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.
LGTM
/run-all-tests |
/run-unit-test |
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.
LGTM
/run-all-tests |
cherry pick to release-2.1 in PR #12891 |
cherry pick to release-3.1 in PR #12892 |
cherry pick to release-3.0 in PR #12893 |
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