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

Run downloading, unpacking, and saving in parallel for serialized syncs #5593

Draft
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

ChrisPenner
Copy link
Contributor

@ChrisPenner ChrisPenner commented Feb 26, 2025

Overview

Corresponding with unisoncomputing/share-api#41 ; this tweaks the download streams from a sorted source to split up downloading, unpacking, and validation/save into pipelines which run in parallel, this allows us to be saving to SQLite we're downloading things in parallel, rather than interleaving downloads with saving as we do on trunk at the moment.

Implementation notes

  • Puts a TBMQueue in between each of 3 different conduit pipelines, then run the pipelines in parallel using UnliftIO.Conc.
  • The progress indicator now shows progress of each portion independently.

Test coverage

  • Tested against local share

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