c# - How is the performance of entity framework 4 vs entity framework 3.5? -
i have 1 query on page takes @ least half second execute using ef 3.5. when used stored procedure speed noticably faster. complex query. there performance improvements in upcoming ef 4.0? , ef 4.0 beat out 3.5 performance wise?
the short answer it's tell. .net guys focusing entirely on performance until release on april 12th has finalized , localized. also, meant faster? faster can viewed in many ways, example:
- entity framework 4.0 has new features, object tracking improvements alone may mean huge wins since you're not doing manual work yourself...in case, @ least development's faster.
- if didn't work @ before, lighter weight objects poco support may mean lot less memory being shifted when dealing lots of objects well. no matter how small cost of properties being populated when fetching db, there cost both in instantiating , tracking them (load time , memory consumption).
in specific case, half second long time complex or high volume query...have looked see how time spent in database , how time spent once .net has data? if you're spending of time outside of sql yes, base improvements in reflections in net 4.0 should provide speed improvement...however if you're spending time in sql, won't @ all. bulk of performance problem may indexing of generated sql , not entity framework hydration performance.
i follow kane's comment, @ sql it's generating query, possible post , stored procedure is quick can maybe find problem lies?
Comments
Post a Comment