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

Optimize IdentityServer data access on token request #6969

Closed
hikalkan opened this issue Jan 3, 2021 · 0 comments · Fixed by #7856
Closed

Optimize IdentityServer data access on token request #6969

hikalkan opened this issue Jan 3, 2021 · 0 comments · Fixed by #7856

Comments

@hikalkan
Copy link
Member

hikalkan commented Jan 3, 2021

When we request access token from IDS endpoint, it performs 6-7 database queries. We can try to optimize these database operations. For example, we may exclude details while querying where it is not needed or try to reduce queries if possible.

Note: Adding app.UseUnitOfWork() middleware before app.UseIdentityServer() (#6968) helps to reduce DbContext creation. However, I think we can optimize it more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment