How to reduce Entity Framework 4 query compile time?

前端 未结 5 767
迷失自我
迷失自我 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:47

    Make your queries simpler. Seriously; there's an almost linear relationship between query complexity and compile time. Two simple queries are often much faster than one really complicated query (even if precompiled!). If speed is the end goal, choose the fastest option.

提交回复
热议问题