.net - Entity Framework Performance Problem -


i having performance problems entity framework when first query application executed takes around 20 seconds checked query's actual execution time on sql server sql server profiler takes miliseconds .after first query others work ok.

the query extremely simple select table 1 row inserted.db consists of around 200 tables nothing fancy in no indexes ,views...i saw other people having similar problems first query not find solution.any idea what's going on?

well query

        dbentities en = new dbentities();          var person= (from p in en.people                            select p).first();         this.txt1.text = person.name; 

although sql query takes milliseconds, creation of sql within ef maybe taking time on first execution. if it's complex query/model. take @ article explains how can pre-generate improve performance. pre-generate views


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -