Don’t use Load(). It’s whole point is to load all the rows into memory, and uses lots of memory.
Huge Memory Issue in Entity framework Load Method
Indudhar Gowda
426
Reputation points
this.Context.TestPRepetitions.Where(tp => sampleCodes.Contains(tp.SampleCode))
.Include(tp => tp.ReportableResults)
.Load();
this.Context.Recognitions.Where(rec => reportableResultIds.Contains(rec.ReportableResultId)).Load();
Recognitions Table has 6352014 Rows
@AgaveJoe this what the Actual Method Does...
Developer technologies .NET Other
4,103 questions
SQL Server Other
14,494 questions
Developer technologies C#
11,567 questions
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2022-05-04T21:21:01.43+00:00