Actions
Issue #7898
closedNo-op copy operations perform a lot of unnecessary work
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.21.5
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
If search criteria were provided but no matching content units were found, nothing can possibly be copied by Pulp, so we can exit early.
Currently, we go through the motions anyway, which is extremely demanding on the host system.
Actions
Add an optimization for empty copy operations
If we know there can be nothing copied, exit early rather than doing useless work.
closes: #7898 https://pulp.plan.io/issues/7898