Redian新闻
>
如何分析Stored Procedure运行时间过长?
avatar
如何分析Stored Procedure运行时间过长?# Database - 数据库
h*l
1
一个Stored Procedure原来只要运行两三分钟,
做了些修改以后,要运行半个多小时。
应该如何分析解决问题?
多谢了。
avatar
a*a
2
If on sql server, its Query Analyzer has an option called
"Analyze query execution plan" which shows you how the query
(storedproc) is going to be executed.

【在 h*****l 的大作中提到】
: 一个Stored Procedure原来只要运行两三分钟,
: 做了些修改以后,要运行半个多小时。
: 应该如何分析解决问题?
: 多谢了。

avatar
d*e
3
tell us your databse Managerment system.
不知道具体的dbms怎么帮你
并且,你可以检查的东西太多,index,i/o,存储过程的个数.
操作系统,cooked file or raw disk.参考一下你的performance guidance吧.

【在 h*****l 的大作中提到】
: 一个Stored Procedure原来只要运行两三分钟,
: 做了些修改以后,要运行半个多小时。
: 应该如何分析解决问题?
: 多谢了。

avatar
h*l
4
My DBMS is MS SQL Server.

【在 d******e 的大作中提到】
: tell us your databse Managerment system.
: 不知道具体的dbms怎么帮你
: 并且,你可以检查的东西太多,index,i/o,存储过程的个数.
: 操作系统,cooked file or raw disk.参考一下你的performance guidance吧.

avatar
d*e
5
oh,对mS的东西不太懂.不过你先看看性能的各种数据.

【在 h*****l 的大作中提到】
: My DBMS is MS SQL Server.
avatar
l*w
6
what version, 2000 or 7.0. There are perf tools come with the installation.
I will give you more detail tomorrow after I check some references.

【在 h*****l 的大作中提到】
: My DBMS is MS SQL Server.
avatar
l*w
7
using sql profiler you can find out the time spend on each statement.

【在 l*w 的大作中提到】
: what version, 2000 or 7.0. There are perf tools come with the installation.
: I will give you more detail tomorrow after I check some references.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。