tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

Scope of pregenerated views

26 Jun 2009 Entity Framework

Pregenerating views can speed up startup time of you application. You may find more info in my previous post about it. On the other hand, setting up this for all developers or i.e. build machine can be tricky. Thus it may be worth to think whether it’s for you or not.

One reason not to pregenerate these views (besides laziness 😉) could be, that your application is long running (i.e. windows service or ASP.NET app (I’m not IIS and ASP.NET guru so I hope this is also the case)) and if these views would be cached in smart way, application will be benefit from it even without pregenerating.

Good news. These bi-directional views are cached per appdomain. So if you don’t care about startup time and your application is long running (in one appdomain) you don’t have to care about setting up all the stuff described in the article.

Profile Picture Jiří Činčura is an independent developer focusing on data and business layers, language constructs, parallelism and databases. Specifically Entity Framework, asynchronous and parallel programming, cloud and Azure. He's Microsoft Most Valuable Professional and you can read his articles, guides, tips and tricks at www.tabsoverspaces.com.