-
Notifications
You must be signed in to change notification settings - Fork 9
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 user.member_request_edit
#751
Comments
I'm really not sure why this happens. We have precisely 41 buildings, so my guess would be that it's the Needs investigation. |
relevant frontend endpoint: pycroft/web/blueprints/user/__init__.py Lines 1138 to 1194 in 968f2ad
|
It seems that the slow transactions are the |
I think validation might be the culprit, specifically https://github.com/wtforms/wtforms-sqlalchemy/blob/09b3d4745ec98d6d8f769f6794bc217c63d81946/wtforms_sqlalchemy/fields.py#L184-L193 (or the |
This causes 41(!!) lazy fetches on every request, adding up to
~120ms
.Sentry Issue: PYCROFT-9D
The text was updated successfully, but these errors were encountered: