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

restore: Download multiple contiguous blobs in one request #624

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

aawsome
Copy link
Member

@aawsome aawsome commented Apr 30, 2023

The restore command used to download each needed blob by its own.
This PR checks if there are many needed blobs which form a contiguous piece of data within a pack file and downloads them together.
This should reduce repository operations and speed-up the restore especially for remote/high latency backends.
Also the restore path is no longer saved once per blob in the file, but only once per file. So this PR should reduce memory for large files-to-restore.

@aawsome aawsome changed the title restore: Download multiple continuous blobs in one request restore: Download multiple contiguous blobs in one request May 1, 2023
@aawsome
Copy link
Member Author

aawsome commented Jun 19, 2023

rebased

@aawsome aawsome merged commit 35c83e4 into main Jun 19, 2023
16 checks passed
@aawsome aawsome deleted the enhance-restore branch June 19, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant