You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using EF Core 6.0.5 and Microsoft.Data.SqlClient 4.1.0 running in Azure AppService and SqlAzure database.
After enabling DbContextFactory we se excessive memory usage in our application.
The context pool is as default (up to 1024 DbContexts) and there is a number of VARCHAR(MAX) columns in our database.
When a DbContext is return to pool the SqlConnection (and BufferedDataReader) will still hold a large amount of memory from the last SQL Query.
Am I doing something wrong or shouldn't this be cleared from the pooled DbContext?