10万条数据不多;先turn on Execution Plan看看

主要的时间花在哪里了,然后专功那一块。

估计你使用stored proc,对吧!

所有跟帖: 

No, no stored proc at all, pure SQL -天外飞砖- 给 天外飞砖 发送悄悄话 天外飞砖 的博客首页 (30 bytes) () 06/04/2009 postreply 23:47:42

用stored procedure,会大大地提高performance -不知道我是谁- 给 不知道我是谁 发送悄悄话 不知道我是谁 的博客首页 (158 bytes) () 06/04/2009 postreply 23:53:05

MD, 我说了是自动产生的dynamic SQL,不能用stored proc -天外飞砖- 给 天外飞砖 发送悄悄话 天外飞砖 的博客首页 (0 bytes) () 06/04/2009 postreply 23:57:20

md, stored proc can execute a string ... -不知道我是谁- 给 不知道我是谁 发送悄悄话 不知道我是谁 的博客首页 (0 bytes) () 06/05/2009 postreply 00:08:04

that loses the benefit to have a pre-compiled execution plan -天外飞砖- 给 天外飞砖 发送悄悄话 天外飞砖 的博客首页 (0 bytes) () 06/05/2009 postreply 00:12:54

不想了,混一会就下班了。 -不知道我是谁- 给 不知道我是谁 发送悄悄话 不知道我是谁 的博客首页 (0 bytes) () 06/05/2009 postreply 00:24:35

你们公司真强,搞蛮的。 -不知道我是谁- 给 不知道我是谁 发送悄悄话 不知道我是谁 的博客首页 (0 bytes) () 06/04/2009 postreply 23:54:13

靠,那些SQL是根据客户的自定义数据库产生的,没法写proc -天外飞砖- 给 天外飞砖 发送悄悄话 天外飞砖 的博客首页 (0 bytes) () 06/04/2009 postreply 23:59:39

回复:10万条数据不多;先turn on Execution Plan看看 -newstoall- 给 newstoall 发送悄悄话 (65 bytes) () 06/05/2009 postreply 04:17:50

请您先登陆,再发跟帖!