Actions
Backport #9401
closedBackport #9266 "repository 'modify' touches all the content being added one by one" to 3.14.z
Start date:
Due date:
% Done:
100%
Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 106
Quarter:
Description
Bulk touch feature of the BulkQuerySet should be used to reduce number of queries that are executed in the viewset handling the Repository Modify API.
Removing the iteration of the content in the viewset will require the task to determine if any of the content to be added doesn't exist. The task needs to raise a RuntimeError with a list of pulp_href's for the content that doesn't exist.
Related issues
Actions
Do bulk_touch instead of touching one by one
backports #9266. closes: #9401
(cherry picked from commit 4023fce)