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

Optimize ACS pipeline for runtime and memory #5832

Merged
merged 3 commits into from
Feb 24, 2025
Merged

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Sep 24, 2024

So far, I can tell that it at least reduced runtimes by about 75%, but the memory use improvement is minimal.

Copy link

stale bot commented Dec 23, 2024

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label Dec 23, 2024
Copy link

stale bot commented Jan 24, 2025

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

@stale stale bot closed this Jan 24, 2025
@dralley dralley removed the stale label Jan 24, 2025
@dralley dralley reopened this Jan 24, 2025
@dralley dralley marked this pull request as ready for review January 27, 2025 13:55
Lift some queries that were performed per-batch outside of the loop,
resolving an N+1 where N=number of batches. Also use .iterator()
Instead of performing a gigantic AND-ed OR clause query, break up the
list of remote artifacts by checksum type and perform one IN query per
type of checksum, which ought to be easily indexable.
Copy link
Contributor

@ggainey ggainey left a comment

Choose a reason for hiding this comment

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

Can we get something in the changelog for this? Users who care will notice, and it's a good thing to be able to advertise.

Lift the ACS domain check out of the stage entirely.
Copy link
Contributor

@ggainey ggainey left a comment

Choose a reason for hiding this comment

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

Great - thanks for the changelog entry!

@dralley dralley enabled auto-merge (rebase) February 24, 2025 21:53
@dralley dralley merged commit 74047db into pulp:main Feb 24, 2025
12 checks passed
@dralley dralley deleted the acs-optimize branch February 24, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants