Linq到实体SaveChangesMethod的性能问题 [英] Performance issues with Linq to Entities SaveChangesMethod

查看:111
本文介绍了Linq到实体SaveChangesMethod的性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Web应用程序中,我正在使用Linq到实体框架,
在其中的代码中,我将数据插入10个表并调用ign SaveChanges()方法,
单独执行此方法大约需要13秒,
我该如何提高此
的性能
在此先感谢

Hi, In my web application i am using Linq to entity framework,
in one the code i am inserting data into 10 tables and callign SaveChanges() method,
It is taking around 13 seconds to execute this method alone,
how can i increase the performance of this

thanks in advance

推荐答案



您需要使用Linqpad改善/优化查询.您可以从此处 [ ^ ].还要遵循下面讨论的准则
http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html [
Hi,

You need use Linqpad to improve/finetune your query. You can download linqpad from here[^]. Also follow the guidelines discussed below
http://www.sidarok.com/web/blog/content/2008/05/02/10-tips-to-improve-your-linq-to-sql-application-performance.html[^]

Hope this will help.


这篇关于Linq到实体SaveChangesMethod的性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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