Click here to Skip to main content
15,891,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

since one week i am using the .net entityframework to access a sqlserver database, so far everything worked fine. But now i have some Performance issues, when i want to update a table with about 90 entities the linq and savechanges commands take a very Long time (about 3-5 seconds) to get the data or update the database.
What can i do to improve the Performance of the entitymodel.

Does anyone of you have experiences with this Framework and can help me Speed up the whole thing?

Kind Regards
Manuel
Posted
Comments
Oleksandr Kulchytskyi 21-Dec-12 10:49am    
Do you have any code ?)
Every time when peoples asking question like yours it's quite difficult to understand the problem behind the scene...
So please , sources in a studio )
And second one you don't specified type of EF is it Ef Code-first ? Which version?
Or somethink like that...
Sk. Tajbir 21-Dec-12 11:23am    
Please share your code if its OK. I think you can write efficient Linq query to reduce time.
Keith Barrow 21-Dec-12 12:30pm    
Performance is pretty hard to optimise without the code, please can you add it?
Given the what you have described, it shouldn't be taking that long, but without the code it is hard to tell. Despite common belief, EF performs fairly well, but you need to know what you are doing, like all technologies I suppose.
The first thing I'd check is that you aren't creating a DataContext for every update, this would slow things down immediately.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900