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

Don't do unnecessary queries when listing subprojects #6869

Merged
merged 4 commits into from Apr 7, 2020
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Apr 7, 2020

This together with:

reduces a lot of queries and without changing the current UI.

This is a benchmark using the django debug toolbar:

Before: 138 queries with 7 subprojects, 17 queries per each additional subproject

With all the changes: 28 queries with 7 subprojects, 1 query per each additional subproject

Fixes #6455

stsewd added 4 commits Apr 7, 2020
This together with:
- #6867
- #6865
- #6864

reduces a lot of queries and without changing the current UI.

This is a benchmark using the django debug toolbar:

Before: 138 queries with 7 subprojects, 17 queries per each additional subproject

With all the changes: 28 queries with 7 subprojects, 1 query per each additional subproject
@stsewd stsewd requested a review from Apr 7, 2020
Copy link
Member

@ericholscher ericholscher left a comment

This is a solid optimization 👍

@stsewd stsewd merged commit 839a6ec into master Apr 7, 2020
2 checks passed
@stsewd stsewd deleted the list-subprojects-fix branch Apr 7, 2020
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.

2 participants