Saving changes very slow via Datacontext

岁酱吖の 提交于 2019-12-11 09:33:09

问题


I am working on MVC3 .NET Project with Entity framework and SQL Azure Database.

When i try to save multiple records at once in a table it takes several minutes to finish the operation!

I use the same Datacontext for adding Object and saving changes also i've tried to use multiple Datacontexts but the results are the same.


回答1:


In addition, please check out the following documents:

Entity Framework performance considerations: http://msdn.microsoft.com/en-us/library/cc853327.aspx

SQL Azure performance guide: http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-performance-and-elasticity-guide.aspx

Best Regards,

Ming Xu.



来源:https://stackoverflow.com/questions/10791433/saving-changes-very-slow-via-datacontext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!