Project

Profile

Help

Issue #7898

No-op copy operations perform a lot of unnecessary work

Added by dalley about 2 months ago. Updated 12 days ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
-
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.

Associated revisions

Revision 651ea938 View on GitHub
Added by dalley about 2 months ago

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

History

#3 Updated by dalley about 2 months ago

  • Status changed from POST to MODIFIED

#4 Updated by ipanova@redhat.com about 1 month ago

  • Platform Release set to 2.21.5

#5 Updated by ipanova@redhat.com 12 days ago

  • Project changed from Pulp to RPM Support

Please register to edit this issue

Also available in: Atom PDF