Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Siac Download Queue #3146

Open
DavidVorick opened this issue Jul 9, 2018 · 0 comments
Open

Siac Download Queue #3146

DavidVorick opened this issue Jul 9, 2018 · 0 comments
Assignees

Comments

@DavidVorick
Copy link
Member

Currently, to identify a download in the download queue, siac has to grab the full list of downloads from the api, and then iterate over them. It compares the source and destination for a match to the download that it is looking for, which isn't complete, as you could potentially download the same file to the same destination multiple times.

Instead, when you create a download you should be given a UID for the download that you can use to query the API for information about that download specifically. And then you should have an endpoint which allows you to fetch only that download from the download queue (much less data to receive and iterate over), so that we can make download progress checking more efficient.

This is a particular performance concern because siac requests the download queue repeatedly while it is reporting the progress of a file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants