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 performance sync relations #107

Merged
merged 1 commit into from
Sep 14, 2021
Merged

Conversation

LePetitTim
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #107 (d4b4b5a) into master (2d057a8) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
- Coverage   96.17%   96.17%   -0.01%     
==========================================
  Files          40       40              
  Lines        1832     1831       -1     
==========================================
- Hits         1762     1761       -1     
  Misses         70       70              
Impacted Files Coverage Δ
geostore/models.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d057a8...d4b4b5a. Read the comment docs.


logger.info(f"{to_delete.count()} element(s) to delete")
# logger.info(f"{to_delete.count()} element(s) to delete")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to keep this comments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

logger.info(f"{len(qs)} element(s) to add")
qs = Feature.objects.filter(id__in=id_list).exclude(pk__in=self.relations_as_origin.filter(relation=rel)
.values_list('destination_id', flat=True))
# logger.info(f"{len(qs)} element(s) to add")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

@LePetitTim LePetitTim merged commit 0dc1db9 into master Sep 14, 2021
@LePetitTim LePetitTim deleted the fix_queryset_sync_relations branch September 14, 2021 14:13
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

2 participants