Skip to content
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

enhance: accelerate load-backup command speed #233

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

congqixia
Copy link
Collaborator

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

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 <congqi.xia@zilliz.com>
@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

states/etcd_restore.go Outdated Show resolved Hide resolved
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
@congqixia congqixia requested a review from yah01 January 6, 2024 11:42
@yah01
Copy link
Member

yah01 commented Jan 6, 2024

/lgtm

@sre-ci-robot sre-ci-robot added the lgtm look good to me label Jan 6, 2024
@sre-ci-robot sre-ci-robot merged commit a991162 into milvus-io:v1.0.x Jan 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants