私の上司は、この非常に複雑なソフトウェアを 10 年前のように作成し、VPS にセットアップしたばかりの新しい IIS 7 サーバーに移行するように私に依頼しました。タイムアウトして CPU を 100% にする小さなループを除いて、すべてがスムーズに機能するように管理しました。
これが犯人です:
rs_ss.open "SELECT DISTINCT idMC, idUtente, Categoria FROM forte01.RisorseS WHERE idmc=" & request.querystring("idmc") & " and idutente=" & session("idutente") & " order by categoria" ,conn
if not rs_ss.eof then
do while not rs_ss.eof
'conta gli elementi della sottosezione
rse.filter ="categoria='" & rs_ss("categoria") & "'"
if not rse.eof then
n=0
do while not rse.eof
rse.movenext
n=n+1
loop
rse.movefirst
r=1
do while not rse.eof
dettagliarisorse rse, "s_ss",r ,n
r=r+1
rse.movenext
loop
end if
rse.filter =""
rs_ss.movenext
loop
end if
rs_ss.close
中央部分を次のように削除またはコメントアウトすると、次のようになります。
rs_ss.open "SELECT DISTINCT idMC, idUtente, Categoria FROM forte01.RisorseS WHERE idmc=" & request.querystring("idmc") & " and idutente=" & session("idutente") & " order by categoria" ,conn
if not rs_ss.eof then
do while not rs_ss.eof
rs_ss.movenext
loop
end if
rs_ss.close
それはやり続けます。
古いドメインでは問題なく動作します。理由はありますか?