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

[ChunkedBloscFileDataManager] Save data to disk in a SEPARATE thread as returning data to the user #7

Open
j6k4m8 opened this issue Apr 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@j6k4m8
Copy link
Member

j6k4m8 commented Apr 6, 2020

Right now we perform the following data flow upon a ChunkedBloscFileDataManager cache miss:

  1. Ask the next layer for data
  2. Save the retrieved data to disk
  3. Return a copy of that retrieved data

In order to improve performance and save roundtrip time on that initial request, we should perform step 2 (saving the data to disk) in parallel with returning it to the user. Or, rather, spawn a routine to save data to disk in parallel (and allow it to finish even once the HTTP request is closed).

@j6k4m8 j6k4m8 added the enhancement New feature or request label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant