|
楼主 |
发表于 2007-8-30 20:21:09
|
显示全部楼层
经过测试,发现网络的影响不大。
我在服务器上直接使用客户端,速度也很慢。
服务器是windows2003server
Jboss+SqlServer2005
x3版本是2800
在监控文件中可以看到,
在85条监控记录:打开任务数据时
SELECT FTYPENAME, FPRIORITY, FSUBJECT, FFLOWGUID, FBizID, FSPERSON, FSPERSONNAME, FRPERSONNAMES, FSTARTTIME, FFINISHTIME, FLIMITTIME, FPARTYNAME, FPLANNAME, FPLAN, FSOGNNAME, FSDEPTNAME, FSPOSITIONNAME, FSTATE, FLASTCHANGETIME, FCREATETIME, FPLANSTARTTIME, FPLANFINISHTIME, FDISTRIBUTETIME, TTASK.FPARTY, FGUID, FTYPE, FFUNCURL, FUPDATEFLAG, FPROCURL, FDESCRIPTION, FISANONYMITY
FROM TTASK
WHERE (FGROUPGUID = '-1') AND (((TTASK.FCLIENTACCOUNT = 'IVD')) and ((TTask.FCREATETIME >= '2007-08-26 00:00:00') AND (TTask.FCREATETIME < '2007-09-02 00:00:00') AND (FGUID IN(SELECT TTASKMESSAGE.FTASKGUID FROM TTASKMESSAGE WHERE (TTASKMESSAGE.FRORGURL LIKE '\ROOT\AWD.OGN%' OR TTASKMESSAGE.FRPOSITION = 'PZY' OR TTASKMESSAGE.FRORGURL IN('\ROOT\AWD.OGN\ITB.DPT\ITBJL.PTM\LHS.PSM') OR (TTASKMESSAGE.FRPERSON = 'LHS') OR TTASKMESSAGE.FRORGURL LIKE '\ROOT\AWD.OGN\ITB.DPT%' OR TTASKMESSAGE.FRORGURL IN('\ROOT\AWD.OGN\ITB.DPT\ITBJL.PTM' , '\ROOT\AWD.OGN\ITB.DPT' , '\ROOT\AWD.OGN') AND (TTASKMESSAGE.FRPERSON IS NULL OR TTASKMESSAGE.FRPERSON = '')) UNION SELECT T1.FGUID FROM TTASK T1 WHERE (T1.FSORGURL LIKE '\ROOT\AWD.OGN%' OR T1.FSPOSITION = 'PZY' OR T1.FSORGURL IN('\ROOT\AWD.OGN\ITB.DPT\ITBJL.PTM\LHS.PSM') OR (T1.FSPERSON = 'LHS') OR T1.FSORGURL LIKE '\ROOT\AWD.OGN\ITB.DPT%')))))
ORDER BY FCREATETIME DESC
返回36692字节数据,用了20031毫秒。而我在sqlserver的查询分析器中执行这条命令,只用了1300多毫秒
在157条监控记录:打开计划中心时
SELECT Count(*) FROM (select TPLANEXECUTOR.FGUID, TPLANEXECUTOR.FCLIENTACCOUNT, TPLANEXECUTOR.FPLANID, TPLANEXECUTOR.FTYPE, TPLANEXECUTOR.FPERSONID, TPLANEXECUTOR.FPERSONNAME, TPLANEXECUTOR.FPOSITIONID, TPLANEXECUTOR.FPOSITIONNAME, TPLANEXECUTOR.FDEPTID, TPLANEXECUTOR.FDEPTNAME, TPLANEXECUTOR.FOGNID, TPLANEXECUTOR.FOGNNAME, TPLANEXECUTOR.FIDEA, TPLANEXECUTOR.FORGURL, TPLANEXECUTOR.FSTARTTIME, TPLANEXECUTOR.FFINISHTIME, TPLANEXECUTOR.FISCURRENT, TPLANEXECUTOR.FAFFIRMOPERATION, TPLANEXECUTOR.FAFFIRMOPERATIONSTATE from TPLANEXECUTOR where ((TPLANEXECUTOR.FCLIENTACCOUNT = 'IVD'))) A76545165727349F6998BFDD54CFC8 WHERE FPLANID = ?
返回465字节数据,用了20266毫秒
而在查询分析器中执行,连1秒都不要
现在系统使用时间不长,计划表有20条记录,任务表表有几百条记录
请帮忙分析一下原因。 |
|