-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
opt(stream): add option to directly copy over tables from lower levels (#1700) #1872
Open
mangalaman93
wants to merge
1
commit into
main
Choose a base branch
from
aman/copy-levels
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
mangalaman93
requested review from
akon-dey,
billprovince,
joshua-goldstein and
skrdgraph
as code owners
February 14, 2023 10:51
mangalaman93
force-pushed
the
aman/block-length
branch
2 times, most recently
from
February 14, 2023 14:39
e8583aa
to
a3c70d1
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
February 14, 2023 15:36
16131ef
to
0c4052d
Compare
mangalaman93
force-pushed
the
aman/block-length
branch
from
February 14, 2023 15:46
a3c70d1
to
5c374e2
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
2 times, most recently
from
February 14, 2023 15:52
5e7a48d
to
1f99a5c
Compare
mangalaman93
force-pushed
the
aman/block-length
branch
from
February 15, 2023 19:36
5c374e2
to
d1fe28b
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
February 15, 2023 19:37
1f99a5c
to
0e2acc6
Compare
mangalaman93
force-pushed
the
aman/block-length
branch
2 times, most recently
from
February 18, 2023 11:40
1375846
to
12a0e42
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
3 times, most recently
from
February 20, 2023 05:37
f1a05da
to
63a4948
Compare
mangalaman93
force-pushed
the
aman/block-length
branch
from
February 21, 2023 03:43
12a0e42
to
72a4c72
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
February 22, 2023 09:11
63a4948
to
1ab2de4
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
2 times, most recently
from
February 24, 2023 13:10
f7c65e6
to
ed0f577
Compare
This code has a data race, I am looking into it:
|
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
March 1, 2023 07:18
ed0f577
to
741ab83
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
March 2, 2023 07:28
081b41b
to
edb2318
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
March 6, 2023 21:34
edb2318
to
e0226ac
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
March 7, 2023 19:49
e0226ac
to
e55f05f
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
3 times, most recently
from
March 9, 2023 18:10
5d84509
to
8873caa
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
March 15, 2023 19:44
8873caa
to
4615899
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.
Can you write a benchmark for this?
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
May 17, 2023 04:43
4615899
to
e39ebb5
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
June 7, 2023 14:37
e39ebb5
to
32230b1
Compare
mangalaman93
force-pushed
the
aman/sw
branch
2 times, most recently
from
June 12, 2023 04:07
77973c6
to
908259a
Compare
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
June 12, 2023 05:03
32230b1
to
08a3e2d
Compare
#1700) Also takes a bug fix from PR #1712, commit 58d0674 This PR adds FullCopy option in Stream. This allows sending the table entirely to the writer. If this option is set to true we directly copy over the tables from the last 2 levels. This option increases the stream speed while also lowering the memory consumption on the DB that is streaming the KVs. For 71GB, compressed and encrypted DB we observed 3x improvement in speed. The DB contained ~65GB in the last 2 levels while remaining in the above levels. To use this option, the following options should be set in Stream. stream.KeyToList = nil stream.ChooseKey = nil stream.SinceTs = 0 db.managedTxns = true If we use stream writer for receiving the KVs, the encryption mode has to be the same in sender and receiver. This will restrict db.StreamDB() to use the same encryption mode in both input and output DB. Added TODO for allowing different encryption modes.
mangalaman93
force-pushed
the
aman/copy-levels
branch
from
July 19, 2023 04:41
08a3e2d
to
1218725
Compare
This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open. |
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.
This PR adds FullCopy option in Stream. This allows sending the table entirely to the writer. If this option is set to true we directly copy over the tables from the last 2 levels. This option increases the stream speed while also lowering the memory consumption on the DB that is streaming the KVs.
For 71GB, compressed and encrypted DB we observed 3x improvement in speed. The DB contained ~65GB in the last 2 levels while remaining in the above levels.
To use this option, the following options should be set in Stream.
stream.KeyToList = nil
stream.ChooseKey = nil
stream.SinceTs = 0
db.managedTxns = true
If we use stream writer for receiving the KVs, the encryption mode has to be the same in sender and receiver. This will restrict db.StreamDB() to use the same encryption mode in both input and output DB. Added TODO for allowing different encryption modes.