Skip to content
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

Merged
merged 1 commit into from Dec 9, 2019
Merged

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Dec 5, 2019

@dralley

This comment has been minimized.

@dralley

This comment has been minimized.

@fao89

This comment has been minimized.

@fao89 fao89 force-pushed the 5688_ branch 3 times, most recently from 7a95c01 to b7a1466 Compare December 9, 2019 14:10
if update_collection_to_save:
UpdateCollection.objects.bulk_create(update_collection_to_save)

if update_record_collections_to_save:
Copy link
Member

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?

Comment on lines 730 to 735
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
Copy link
Member

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?

@goosemania goosemania merged commit 2c357d0 into pulp:master Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants