Skip to content

Question: Reuse dbcontext instance allowed? #18

@dazinator

Description

@dazinator

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions