我上周试图运行这个查询,但是7个小时后它仍然在执行,我不得不在一天结束时取消。它只返回了800+行,而最终结果应该是20,000行。任何关于改进性能的建议都是非常感谢的。 a.entryID, g.GroupName,
MAX(CASE WHEN e.attributedefinitionid = 15 THEN e.AttributeValue
当前的SQL查询大约需要30秒才能完成执行,这太长了。$sql = "SELECT DISTINCT distance.mp_id from distance WHERE distance.distance < 0.2 ANDdistance.dream_id IN (SELECT dream_id from policy WHERE UPPER(polic
I have an sql query below that is taking too long to execute. kindly check the query and optimise itcount number of files from a file_Actions table but combining it three other tables using inner join
FROM (SELECT t1.cfid as cfid,MAX(t1.timestamp)
我使用以下查询将远程机器的事件日志转储到本地数据库中,但此查询的执行时间约为7-8分钟。如何减少查询的执行时间。logparser -i:evt "select * from \\serverName\Application,system to tableName" -o:SQL -driver:"SQL Server