Project

Profile

Help

Issue #9101 » content_saver_filter_update_in_loop.patch

lmjachky, 08/06/2021 11:44 PM

View differences:

pulpcore/plugin/stages/content_stages.py
relative_path=d_artifact.relative_path,
)
content_artifact_bulk.append(content_artifact)
else:
for d_artifact in d_content.d_artifacts:
if not d_artifact.artifact._state.adding:
# the artifact is already present in the database; update references
ContentArtifact.objects.filter(
content=d_content.content,
relative_path=d_artifact.relative_path,
).update(artifact=d_artifact.artifact)
ContentArtifact.objects.bulk_get_or_create(content_artifact_bulk)
await self._post_save(batch)
for declarative_content in batch:
(1-1/3)