How to debug issues with differing execution times in different contexts.

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-03-17T20:24:29Z Indexed on 2010/03/17 21:41 UTC
Read the original article Hit count: 303

Filed under:
|

The following question seems to be haunting me more consistently than most other questions recently. What kinds of things would you suggest I suggest that they look for when trying to debug "performance issues" like this?

ok, get this - running this in query analyzer takes < 1 second

exec usp_MyAccount_Allowance_Activity '1/1/1900', null, 187128

debugging locally, this takes 10 seconds:

DataSet allowanceBalance =
    SqlHelper.ExecuteDataset(
        WebApplication.SQLConn(), 
        CommandType.StoredProcedure, 
        "usp_MyAccount_Allowance_Activity",
        Params);

same parameters

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about ASP.NET