EntityFramework-Plus icon indicating copy to clipboard operation
EntityFramework-Plus copied to clipboard

Query Filter Memory Leak for EF6.2

Open CodeMatt17 opened this issue 7 years ago • 1 comments

We are using the context filters (i.e. .Filter()) with EF6.2. We have noticed we regularly get to a point where our server throws an out of memory exception due to the context filters not garbage collecting properly. Will this memory leak ever be fixed?

CodeMatt17 avatar Jul 20 '18 06:07 CodeMatt17

Hello @CodeMatt17 ,

If you only have to filter DbSet (not lazy loading or include), you can use Query DbSet ( It doesn't have such issue): http://entityframework-plus.net/query-db-set-filter

We are currently re-writing all our features in our new library: http://entityframework-classic.net/, so we will have the chance to re-visit the QueryFilter very soon and import some code/fix in EF+ if possible.

Best Regards,

Jonathan

JonathanMagnan avatar Jul 20 '18 13:07 JonathanMagnan