![](/img/trans.png)
[英]Disparity between SqlReader execution times on same .NET project but different computers
[英]How to debug issues with differing execution times in different contexts
與最近的大多數其他問題相比,以下問題似乎更困擾我。 您建議我建議在嘗試調試此類“性能問題”時會尋找什么樣的東西?
好的,得到這個-在查詢分析器中運行它需要<1秒
exec usp_MyAccount_Allowance_Activity '1/1/1900', null, 187128
在本地調試,這需要10秒鍾:
DataSet allowanceBalance =
SqlHelper.ExecuteDataset(
WebApplication.SQLConn(),
CommandType.StoredProcedure,
"usp_MyAccount_Allowance_Activity",
Params);
相同的參數
真正要回答的可怕問題-調試程序中的代碼與調試程序中的代碼相比,Heisenbug計時問題的所有方式都會引入各種可能會為您帶來麻煩的事情,而這些問題您永遠都不會知道。
調試器傾向於將手指放在所有可能影響性能的地方。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.