Provide opt-in way to disable snapshotting/resetting for DbContext pooling #24769
Labels
area-dbcontext
area-perf
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
type-enhancement
Milestone
Instead of using the built-in context pooling, I experimented with a non-resetting context pool which simply hands out instances without any state resetting etc.; this yielded a 1.8% perf increase. We can add an opt-in flag to DbContext pooling that would likely get use close to that.
Note similarity with Npgsql's
No Reset On Close
, which does the same at the ADO connection pooling level.The text was updated successfully, but these errors were encountered: