This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / entity framework 和 DB2 用的时候效率比较低啊,特别是当 update 一个 entity with many children (1 to many) 的时候。做了 performance profile 发现都是 TryGetObjectByKey 和 SaveChanges 用的最多,有没有好的方法提高一下?
-sowen(昂居居);
2010-2-4
(#5860785@0)
-
My two centsIn your situations, object Services must continuously open and close the connection to the data source. You can consider manually opening the connection at the start of these operations and either closing or disposing of the connection when the operations are complete.
-deep_blue(BLUE);
2010-2-5
{269}
(#5864385@0)
-
I doubt it
-sowen(昂居居);
2010-2-9
{857}
(#5874214@0)
-
What data provider are you using?
-deep_blue(BLUE);
2010-2-10
(#5874401@0)
-
IBM.Data.DB2.xxxx
-sowen(昂居居);
2010-2-10
(#5874451@0)