保存更改通过DataContext的速度很慢 [英] Saving changes very slow via Datacontext

查看:96
本文介绍了保存更改通过DataContext的速度很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作MVC3 .NET项目与实体框架和SQL Azure数据库。

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!

我用同样的DataContext添加对象并保存更改也我试着使用多个Datacontexts但结果是一样的。

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.

推荐答案

此外,请查看以下文件:

In addition, please check out the following documents:

实体框架性能方面的考虑: http://msdn.microsoft.com/en -us /库/ cc853327.aspx

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

SQL Azure的性能指南:<一href=\"http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-performance-and-elasticity-guide.aspx\" rel=\"nofollow\">http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-performance-and-elasticity-guide.aspx

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

最好的问候,

徐明。

这篇关于保存更改通过DataContext的速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆