Java SQL Server查询挂起在Mybatis中,但不在management studio中
我遇到了一个问题,我可以在SQLServerManagementStudio中运行查询,但当我从Mybatis运行查询时,相同的查询将挂起。活动监视器显示由查询启动的许多进程,这些进程似乎通过许多cxpacket和pageiolatch_sh等待相互计时 audit_player表有2.67亿行,player和playerInfo 350000和currency 20 你知道是什么引起的吗Java SQL Server查询挂起在Mybatis中,但不在management studio中,java,sql-server-2008,mybatis,Java,Sql Server 2008,Mybatis,我遇到了一个问题,我可以在SQLServerManagementStudio中运行查询,但当我从Mybatis运行查询时,相同的查询将挂起。活动监视器显示由查询启动的许多进程,这些进程似乎通过许多cxpacket和pageiolatch_sh等待相互计时 audit_player表有2.67亿行,player和playerInfo 350000和currency 20 你知道是什么引起的吗 select 'INS' as typeOfChange, p.playerId as "model
select 'INS' as typeOfChange,
p.playerId as "model.id"
from Player p
INNER join
(select DISTINCT(playerId) as playerId
from Audit_Player
where modifiedDate > '2012-11-14 14:35:47' and action in ('INS', 'UPD') and tester = 0) ap
on p.playerId = ap.playerId
left outer join PlayerInfo i on i.playerId = p.playerId
left outer join Currency c on c.curName = i.curName where c.curCode <> 'XXX'
UNION
select 'DEL' as typeOfChange,
playerId as "model.id"
from Audit_Player
where modifiedDate > '2012-11-14 14:35:47' and action = 'DEL'
请阅读:也有可能复制您的选择…谢谢,这些看起来很有希望