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

Do not fetch chart content, when not needed #504

Merged

Conversation

TwoStone
Copy link
Contributor

@TwoStone TwoStone commented Nov 23, 2021

When creating the index.yaml for a repository the server fetches the content of the charts twice.
One time when fetching all charts from the storage backend, then determining the diff between cache and backend and then fetch the charts again.
This leads to slower index regeneration and higher costs for backend requests.
The metadata required for the determination of the objectSliceDiff should already be included in the ListObject response so we only have to read the whole file from the backend when it is changed.

@TwoStone TwoStone force-pushed the perf/reduce-chart-fetches-from-storage branch from 412c4bf to de7a67d Compare November 23, 2021 13:52
@jdolitsky
Copy link
Contributor

@TwoStone - thank you!

@jdolitsky jdolitsky added this to the v0.14.0 milestone Jan 24, 2022
@jdolitsky jdolitsky merged commit 1229856 into helm:main Jan 24, 2022
@TwoStone TwoStone deleted the perf/reduce-chart-fetches-from-storage branch February 1, 2022 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants