-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Marshal pb.list in Stream.Backup (#807)
* BREAKING CHANGE: Marshal pb.list in Stream.Backup WARN: This is a breaking change as it changes format of data to be written by backup tool on disk. Backups taken using code before this commit cannot be restored using code from this commit onwards. Backup tool uses Stream to read DB entries and writing it to a file. It implements Stream.Send to write entry one by one. This commit modifies Stream.Send to write entries in batches by marshaling pb.list instead of pb.KV. This improves backup speed by ~4-5x. * Use buffered writer for writing in backup tool
- Loading branch information
1 parent
2237832
commit 4e5cbcc
Showing
2 changed files
with
33 additions
and
20 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