How to reduce Entity Framework 4 query compile time?

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

    This is likely not the answer you are looking for, but for a simple workaround why don't you run the CompiledQuery.Compile at the time the webapp gets initialized (do some dummy call to the webapp) instead of the first (customer) call.

提交回复
热议问题