Click here to Skip to main content
13,043,650 members (51,893 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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
Posted 21-Dec-12 4:42am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100