New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve memory performance on syncing #1550
Conversation
2c4bea7
to
9aa7509
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7a95c01
to
b7a1466
Compare
if update_collection_to_save: | ||
UpdateCollection.objects.bulk_create(update_collection_to_save) | ||
|
||
if update_record_collections_to_save: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming is somewhat confusing and I don't have any better suggestions. Can you leave a comment that we are saving UpdateRecord -> UpdateCollection relations here? Or do you have any other ideas to clarify it?
pulp_rpm/app/tasks/synchronizing.py
Outdated
UpdateRecordCollections = UpdateRecord.collections.through | ||
ModulemdPackages = Modulemd.packages.through | ||
PackageGroup_packages = PackageGroup.related_packages.through | ||
PackageCategory_groups = PackageCategory.packagegroups.through | ||
PackageEnvironment_groups = PackageEnvironment.packagegroups.through | ||
PackageEnvironment_optionalgroups = PackageEnvironment.optionalgroups.through |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are inconsistent here with the naming. Some relations are named using camel case only, some are combination camel and snake ones. Do you think it's worth making it consistent?
https://pulp.plan.io/issues/5688
Required PR: pulp/pulpcore#440
closes #5688