Microsoft announced a significant improvement in the performance of Entity Framework 5

Source: Internet
Author: User

Microsoft announced a significant improvement in the performance of Entity Framework 5

Posting by itwriter published on comment (7) 1542 people read the original article link [favorites]»

According to the introduction on the blog of the ADO. Net team, EF applications of this version are used.ProgramThe performance improvement is partly due to the automatic compilation of the LINQ to entities query. The automatic compilation function has always been part of the EF framework. It can be used only when developers call compiledquery. compile. EF 5 will now automatically process this step: When a query is run for the first time, it will be compiled and cached, so that subsequent requests can be completely recompiled.

EF 4 uses the compiled query cache for esql (Embedded SQL) queries, and EF 5 extends this function to the LINQ to entity query. Once more than 800 compiled queries are buffered, a collectionAlgorithmThe cache will take effect and be cleared once every minute. The object is removed from the cache based on the lfru principle (most recently used.

Using compiled LINQ to SQL queries can also improve performance. The ADO. Net team mentioned that in their internal tests, some modifications to the query parameter evaluation method have resulted in a 600% performance improvement.

Although. net delivery and EF release are independent of each other. They still share some core libraries, including system. data. entity. DLL, system. data. entity. design. DLL and system. web. entity. DLL. The advantage is that developers who use EF 4.0 can experience performance improvement as long as they upgrade to. NET Framework 4.5.

Some new features in EF5 (such as enumeration support and Spatial Data Types) depend on the features in. NET Framework 4.5, so there is not much to expect to use them before. Net 4.5 is released. In addition, Microsoft announced the release of ef4.3 at the beginning of this month.

Microsoft reports significant performance improvements in Entity Framework 5

7

0

From: infoq

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.