-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
forknet: Drop unneeded columns in the fork-network command (#12921)
`fork-network finalize` deletes data in every column except the ones we need to start the network, but it does it with a delete DB transaction. This only logically deletes the values, but does not free up the disk space, which will only happen after a compaction. So here we remove the columns by calling `drop_cf()` on the unnecessary columns, which actually removes the sst files and frees up the space. This will reduce the size of images used for forknet by quite a bit.
- Loading branch information
1 parent
557bff1
commit 489303d
Showing
4 changed files
with
92 additions
and
19 deletions.
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
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