Skip to main content

Posts

Showing posts with the label ASP.NET

Processing high-volume data in .NET Entity Framework

 The efficiency of DDL and DML operations on data within Object-Relational Mapping (ORM) systems has become a prominent concern in the contemporary development landscape. Entity Framework stands out as a widely-used ORM within the .NET ecosystem. In specific scenarios, business requirements necessitate retrieving or doing some processes with large datasets, often involving millions of records in SQL Server databases. In light of this challenge, I have chosen to share my insights and experiences. Firstly, we should understand the coroutine, then we will discuss IAsyncEnumerable and IEnumerable , and finally, we will discuss approaches to handling huge numbers of data. What is coroutine? From the Educative website The word “coroutine” is composed of two words: “co” (cooperative) and “routines” (functions). In .NET, a coroutine is a function that can be suspended and resumed later. The .NET Framework keeps track of the state of a coroutine using a data structure called a coroutine frame