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

sentry issue across projects: n+1 query problem #10

Open
gregorpirgie opened this issue Mar 9, 2023 · 0 comments
Open

sentry issue across projects: n+1 query problem #10

gregorpirgie opened this issue Mar 9, 2023 · 0 comments
Labels
bug Something isn't working performance issue The issue relates to performance problems.

Comments

@gregorpirgie
Copy link
Contributor

Describe the bug
Response times for certain requests are unreasonably long. Sentry catches this and describes the underlying issue as n+1 query problems on the ORM / SQL layer.

To Reproduce
It's not an error and doesn't produce an error output. But see this example issue (many similar issues can be found across apis-vanilla instances in sentry)
https://acdh-ch.sentry.io/issues/3828213359/?project=4504360844394496&query=is%3Aunresolved&referrer=issue-stream

Expected behavior
The queries should be optimised to improve performance.
See fixes below.

fixes
Sentry provides these two links on how to fix this common problem:

Additional context
It's a problem in apis-vanilla and potentially in apis-rdf as well.

@gregorpirgie gregorpirgie added bug Something isn't working performance issue The issue relates to performance problems. labels Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance issue The issue relates to performance problems.
Projects
None yet
Development

No branches or pull requests

1 participant