-
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
*: implement IterReverse for tikvSnapshot and use desc scan to get latest N ddl history jobs. #10152
Conversation
…into reverse-kv-scan
Codecov Report
@@ Coverage Diff @@
## master #10152 +/- ##
================================================
+ Coverage 78.2253% 78.2477% +0.0224%
================================================
Files 413 413
Lines 87542 87623 +81
================================================
+ Hits 68480 68563 +83
+ Misses 13933 13922 -11
- Partials 5129 5138 +9 |
@winkyao PTAL again. |
fc57244
to
f0a4021
Compare
f0a4021
to
b7b62d4
Compare
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 |
/rebuild |
/run-all-tests |
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
…test N ddl history jobs. (pingcap#10152)
…test N ddl history jobs. (pingcap#10152)
What problem does this PR solve?
Currently
admin show ddl jobs
get all ddl history jobs, but we only need the latest N ddl history jobs. So we can use desc scan to get latest N ddl history jobs.What is changed and how it works?
IterReverse
fortikvSnapshot
.IterReverse
to get latest ddl history jobs foradmin show ddl jobs
Compare
There are 17083 ddl history jobs.
Before spend 0.5s.
In This PR spend 0.01s.
Check List
Tests
Code changes
Side effects
Related changes