This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
optimize memory in hundreds-of tables scenario #52
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d64ef67
merge chendahui/new-flow
holys 64e1852
one region one kvencoder
holys be62c3a
vendor: update tidb to 8058fd644b57089640502d946466ae84fd490e25
holys 361a7f3
vendor: update tipb
holys f06255d
Merge branch 'master' into chendahui/optimize-memory
holys 47badd9
Merge branch 'chendahui/vendor-update' into chendahui/optimize-memory
holys 64cd082
use new optimized kvencoder
holys a5ca1d8
one table on TableKvEncoder and share it to multiple region worker
holys ee7919d
recycle table worker
holys 7c65f74
Merge branch 'chendahui/hot-fix' into chendahui/optimize-memory
holys 55ccb59
use independent encoder for each region
holys 1332707
Merge branch 'master' into chendahui/optimize-memory
holys 22aab75
address comment
holys 1e71c18
address comment
holys 8b8a4c0
address comment
holys 1b3efdb
Merge branch 'master' into chendahui/optimize-memory
holys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
one table on TableKvEncoder and share it to multiple region worker
- Loading branch information
commit a5ca1d8eead45d53ed04f31ed3e9ccac9f1d67d2
There are no files selected for viewing
This file contains 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
This file contains 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
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.
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.
seems no need to save it? because we do not use it anymore
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.
We need to save it because we need to close the encoder in the last when all the regions(of the table) finished.
Why we can't close the encoder early? The reason is that it may close the global dom.
ref: https://github.com/pingcap/tidb/blob/master/util/kvencoder/kv_encoder.go#L118
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.
😳 fine