Skip to content

API v3: optimize project listing #12355

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

API v3: optimize project listing #12355

wants to merge 2 commits into from

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jul 23, 2025

This is reviving an old optimization that was
added in 363dccb

but it was added for the old footer API, but it works for API v3 as well.
This used to be 24 queries, now it went down to 16.

This is reviving an old optimization that was
added in 363dccb

but it was added for the old footer API, but it works for API v3 as
well.
@stsewd stsewd requested a review from a team as a code owner July 23, 2025 15:34
@stsewd stsewd requested a review from humitos July 23, 2025 15:34
Comment on lines -181 to -182
"related_projects",
"domains",
Copy link
Member Author

Choose a reason for hiding this comment

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

These were adding extra queries and not being used, as django ignores prefetching if anything other than objects.all() is called.

Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

🚀

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