Click here to Skip to main content
11,492,523 members (62,860 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET database Entities
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 21-Dec-12 5:42am
Comments
Oleksandr Kulchytskyi at 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 at 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 at 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
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 399
1 Maciej Los 266
2 KarstenK 210
3 CPallini 208
4 Sascha Lefèvre 195
0 Sergey Alexandrovich Kryukov 9,943
1 OriginalGriff 8,610
2 Sascha Lefèvre 3,609
3 Maciej Los 3,372
4 Richard Deeming 2,440


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2015
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