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

Feature Request: a local cache for downloading files #679

Open
wjaskowski opened this issue Aug 30, 2021 · 0 comments
Open

Feature Request: a local cache for downloading files #679

wjaskowski opened this issue Aug 30, 2021 · 0 comments

Comments

@wjaskowski
Copy link
Contributor

wjaskowski commented Aug 30, 2021

I often statistically analyze files sent to the neptune. In the notebook, I first download the files, then do some analyses. Since the files change on the server (e.g., new runs are added), I redownload everything every time I need to redo the analysis. This takes a lot of time since the files are large and there are many of them. So, recently, I have written a small function that manages a cache and now it is much faster and I am putting less pressure on your and mine bandwidth. However, this is not an ideal solution since I am not able to check whether the file on the server actually changed (no md5, for instance) so my solution is not robust.

So, I was thinking, maybe you could consider implementing a cache on your side?

I imagine that from the user point of view, it could be just an additional parameter to Handler.download(..., use_cache=True) or Handler.download(..., use_cache, cache_dir=Path('/tmp').

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

No branches or pull requests

5 participants