Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java SQL Server查询挂起在Mybatis中,但不在management studio中_Java_Sql Server 2008_Mybatis - Fatal编程技术网

Java SQL Server查询挂起在Mybatis中,但不在management studio中

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

我遇到了一个问题,我可以在SQLServerManagementStudio中运行查询,但当我从Mybatis运行查询时,相同的查询将挂起。活动监视器显示由查询启动的许多进程,这些进程似乎通过许多cxpacket和pageiolatch_sh等待相互计时

audit_player表有2.67亿行,player和playerInfo 350000和currency 20

你知道是什么引起的吗

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'

请阅读:也有可能复制您的选择…谢谢,这些看起来很有希望