Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Sneak Preview: Entity Framework 5.0 Performance Improvements

AddThis Social Bookmark Button
An O/RM, like any layer of abstraction, introduces overhead to data access. In EF 5.0 we have taken steps to reduce this overhead and improve performance. As a result in one of our tests, repeat execution time of the same LINQ query has been reduced by around 6x. We also have an end-to-end application that we use for performance testing that is running 67% faster.   LINQ to Entities Query Repeat Execution Time In EF 5.0 we are introducing automatic compilation of LINQ to Entities queries. From the first version of EF, developers have been
able to compile LINQ queries explicitly by calling CompiledQuery.Compile, but many developers either were not aware of this ability or found the API harder to work with than regular LINQ. In EF 5.0 we took on some of this work for you, so that the translation of inline LINQ queries is now cached without having to use CompiledQuery. This improvement, together with an optimization in how we evaluate query parameter values, has had a profound impact on the query performance of EF: The graph above represents the relative time spent in the execution of a...(Read whole news on source site)

Home : Blog List : ADO.NET team blog - Site Home - MSDN Blogs : Sneak Preview: Entity Framework 5.0 Performance Improvements