-
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
*: trace the execution of the insert operation #11667
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11667 +/- ##
===========================================
Coverage 81.6406% 81.6406%
===========================================
Files 428 428
Lines 93707 93707
===========================================
Hits 76503 76503
Misses 11788 11788
Partials 5416 5416 |
I try to make the trace reaches to
|
Could you remove startTS column? |
/rebuild @ngaut Although the tree reveals the call stack, the For example:
If we run some asynchronous code, this can be misleading:
Does the whole process take 4ms or 100ms? which one?
|
Thanks |
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.
Please resolve the conflicts.
Conflict resolved @jackysp |
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
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 |
1 similar comment
/run-all-tests |
What problem does this PR solve?
This simple insert operation takes 30ms! I'm trying to figure out why it's so damn slow.
What is changed and how it works?
Add code to trace the execution of the insert operation.
I'd like to trace all operations that visit the network.
And here is why:
From the result, I can see that we still did not do a good job on the unique indices.
BatchGet
twice in the batchChecker;visit tikv in
index.Create
to check the unique conditions;and I'm still investigating why prewrite & commit take so long...
WIP
Check List
Tests
Code changes
Side effects
Related changes
It's better to cherry-pick this PR because without it we'll meet more conflicts.