Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has Microsoft Fixed Linq to Entities Performance Problems in .NET 4.0?

I feel pretty comfortable with the entity framework now. I have been reading some performance articles on the Linq to Entities performance issues. Are these issues still present in .NET 4.0?

like image 319
user161433 Avatar asked Dec 04 '25 17:12

user161433


1 Answers

The Entity Framework performance is much better in EF 4.0 than in previous releases.

However, much (most?) of the EF performance issues are related to the specific ADO.NET Entity Framework Provider you are using. It's up to the provider to handle the requests in a way that performs well for that database engine. SQL Server does well - many other providers, not so well.

This is true in the current release of EF, as well. For example, some of the providers create many, many more database calls than necessary, which becomes especially problematic in 3.5 due to the way EF is accessing data in certain cases.

like image 117
Reed Copsey Avatar answered Dec 07 '25 14:12

Reed Copsey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!