.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
Post a Comment