-
Notifications
You must be signed in to change notification settings - Fork 254
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
Remove redundant db calls from Login rest endpoint #18153
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
when I was testing the login endpoint I noticed in jaeger that it calls the db 2 times, the first db call to get the
name
andpassword_hash
and in the second call it getsdeactivated
status. instead of making it two queries, I suggest to make it in one query.here is a screenshot for you:
the suggested new query
also, you should remove the
name
from the select query because you already have it.The text was updated successfully, but these errors were encountered: