Skip to content

Optimize add_and_remove prep queries on registry push#2408

Draft
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:cursor/optimize-add-and-remove-488
Draft

Optimize add_and_remove prep queries on registry push#2408
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:cursor/optimize-add-and-remove-488

Conversation

@gerrod3

@gerrod3 gerrod3 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix tag replacement on push to filter by tag.name (instance filter never matched).
  • Bulk-collect manifest-list content units for add_and_remove (avoid N+1).
  • Use pulpcore's native aadd_and_remove instead of a local wrapper.

Test plan

  • pulpcore-manager test pulp_container.tests.unit.test_add_and_remove_queries
  • Push + retag same name; verify old tag removed from latest version

Fixes #488
Ref: https://redhat.atlassian.net/browse/PULP-2047

Made with Cursor

Fix tag replacement filtering, bulk-collect manifest-list content units,
and use pulpcore's native aadd_and_remove task.

Fixes pulp#488

Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3
gerrod3 marked this pull request as draft July 15, 2026 19:33
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.

Look into how to optimize queries in add_and_remove method

1 participant