Skip to content

Reduce memory consumption of space reclaim - #8408

Draft
dralley wants to merge 3 commits into
pulp:mainfrom
dralley:reclaim-space-memory
Draft

dralley wants to merge 3 commits into
pulp:mainfrom
dralley:reclaim-space-memory

Conversation

@dralley

@dralley dralley commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Collect content IDs from kept versions in one database subquery instead
of combining a separate subquery for each version through Content. This
keeps the query simpler as the keep list grows. Cover multiple kept
versions, including an empty version.

Generated-By: Codex (GPT-6)
Query distinct content types and look up each model class directly
to check its reclaim protection setting, avoiding a detail-model
query for every type.

Generated-By: Codex (GPT-6)
Filter protected content types in the database and count distinct
candidate artifacts there. Process artifact IDs in bounded batches,
clear eligible links with a set-based update, and retain per-artifact
deletion and protection handling. Cover batch boundaries, shared artifacts,
uploaded content, and progress reporting.

Generated-By: Codex (GPT-6)
@dralley
dralley force-pushed the reclaim-space-memory branch from 4f72fdc to 606a20e Compare December 4, 2026 21:19

This branch has not been deployed

No deployments
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.

1 participant