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

Prefetch chunks while processing #1495

Merged
merged 1 commit into from
Jan 9, 2020
Merged

Prefetch chunks while processing #1495

merged 1 commit into from
Jan 9, 2020

Conversation

slim-bean
Copy link
Collaborator

Currently we wait to call next on the batchChunkIterator until we finish processing the current chunk, this means we have to wait for any retrieval time before processing the next chunk.
This change will load the next chunk on a separate thread in the background to make it available immediately after the current chunk is processed.

…such that we aren't waiting for fetches from GCS and spend all our CPU time decompressing and processing

Signed-off-by: Edward Welch <edward.welch@grafana.com>
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena cyriltovena merged commit 7c49067 into master Jan 9, 2020
@cyriltovena cyriltovena deleted the pre-fetch-chunks branch January 9, 2020 19:13
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.

3 participants