How to reduce Entity Framework 4 query compile time?

前端 未结 5 772
迷失自我
迷失自我 2020-12-30 12:23

Summary: We\'re having problems with EF4 query compilation times of 12+ seconds. Cached queries will only get us so far; are there any ways we can actually reduce the compil

5条回答
  •  再見小時候
    2020-12-30 12:49

    Take a look at nqueries, it uses precompiled queries, that are generated during application startup.

    Edit: Since the switch to EF5, NQueries does no longer support compiled queries as it switched to DbContext, if you still would like to take a look, take the 1.03 release source code, which is still ObjectContext based and supports compiled queries.

提交回复
热议问题