Entity framework very slow to load for first time

后端 未结 3 1468
-上瘾入骨i
-上瘾入骨i 2021-02-10 13:57

I\'m using EF 4 on my web site and have found a very disturbing problem - the first run load time is extremely slow. (about 20-30 seconds). After the first run - it will work re

3条回答
  •  悲&欢浪女
    2021-02-10 14:26

    I was having this problem as well, I found out that it had to do with a large number of views in my database.

    Performance Considerations (Entity Framework) really helped and the steps for mitigating the impact of generating views brought down a 45-60 second initial load to 3-4 seconds.

提交回复
热议问题