-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: accelerate
load-backup
command speed
Previously the `load-backup` command cost lots of time if there are numerous kv pairs in backup file. This PR accelerate this procedure with - Batching the KV entries before writing into embed etcd - Use multiple workers to execute the put transaction For 110k kv backup file, this could improve load time from about 5.5 minutes to around 15 seconds. are numerous Signed-off-by: Congqi Xia <[email protected]>
- Loading branch information
Showing
2 changed files
with
106 additions
and
49 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