Click here to Skip to main content
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 4: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 459
1 Nirav Prabtani 338
2 _Amy 170
3 PIEBALDconsult 160
4 Abhinav S 160
0 OriginalGriff 7,640
1 Sergey Alexandrovich Kryukov 6,836
2 Maciej Los 3,919
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2014
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