This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请教一个MS SQL 2000有关的问题:在同一个MS SQL 2000服务器上,有两个一样的数据库(Data, Table, Index, Stored Procedure, Function, Database Property都一样),分别在这两个数据库里执行同一个SQL QUERY,这个SQL QUERY是一条内含很多个Join和Union的Select指令,发现在其中一个数据库的执行速度比在另一个数据库的执行速度慢近10倍!怎么也找不到原因,请有经验的DX指点,多谢!!
-hillxie(我叫不紧张);
2003-10-14
{329}
(#1412175@0)
-
Is it always like that, 10 times difference? I has similar situation before. at the end I found somebody else was copying a bunch of huge tables while I was executing one query.
-smallguy(oops);
2003-10-14
(#1412854@0)
-
呵呵,我这儿不是这种情况,速度总是差距很大。
-hillxie(我叫不紧张);
2003-10-14
(#1413023@0)
-
多时没做MS SQL了, 记得可以重整理数据库(或类似的命令), 较大的提升性能. 新导入的数据库一般最快.
-xhis(枫下恩仇#13 xhis);
2003-10-15
(#1413291@0)
-
filegroups on separate disks?
locking if both are run in parallel?
-amipro(amipro);
2003-10-15
(#1414189@0)
-
only one disk on the server. I am not familiar with filegroups, how can I make sure if it is the problem?
-hillxie(我叫不紧张);
2003-10-15
(#1415044@0)
-
如果数据库的statistic obsolete, 就会影响到query plan, 比如该用索引的时候没有用. 看看两个query plan 是否相同.
-whatwhenwherewhy(一生何求);
2003-10-19
(#1420983@0)