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

Question: Reuse dbcontext instance allowed? #18

Open
dazinator opened this issue Oct 5, 2022 · 0 comments
Open

Question: Reuse dbcontext instance allowed? #18

dazinator opened this issue Oct 5, 2022 · 0 comments

Comments

@dazinator
Copy link

Hi - thanks for the challenge.
I've assumed that it's not allowed to keep a DbContext instance around between benchmark invocations, i.e in the baseline example a new dbcontext is created every time and this added to overhead. In a real app you'd pool the instances. However to keep the benchmarks like for like and to focus only on speeding up the query capability, i've not tried to cache or pool dbcontext instances..

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

No branches or pull requests

1 participant