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

N+1 Query in /feed/new #4013

Open
barthalion opened this issue Oct 18, 2024 · 2 comments
Open

N+1 Query in /feed/new #4013

barthalion opened this issue Oct 18, 2024 · 2 comments

Comments

@barthalion
Copy link
Member

Sentry Issue: BACKEND-MS

Offending Spans db - SELECT apps.type AS apps_type
FROM apps
...

image

@razzeee
Copy link
Member

razzeee commented Oct 19, 2024

21d58b1 should help with this

@barthalion
Copy link
Member Author

No, an index will not solve this. It's caused by db.is_appid_for_frontend call at https://github.com/flathub-infra/website/blob/main/backend/app/routes/feed.py#L69.

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

No branches or pull requests

2 participants