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

Cache ResettableServices for DbContext pooling #24138

Merged
merged 2 commits into from
Feb 12, 2021
Merged

Conversation

roji
Copy link
Member

@roji roji commented Feb 12, 2021

This avoids recalculating the services which need to be reset every time a pooled DbContext is disposed.

GetResettableServices

This gets us from 74,621 RPS -> 77,231 (3.4% improvement)

@roji roji marked this pull request as ready for review February 12, 2021 16:49
@roji roji merged commit 3b0a18b into main Feb 12, 2021
@roji roji deleted the CacheResettableServices branch February 12, 2021 19:59
@roji roji linked an issue Feb 23, 2021 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Improve EF Core (non-tracking) query performance on TechEmpower Fortunes
2 participants