Hi ,
we are using AX 2009 application, and randomly we are getting number sequence related long running queries in SQL level which is effecting the performance of the application. Can anyone have idea on why it’s causing and how to find root cause that which operation or which number sequence causes this blocks ?. below are the few example queries which we are having problem.
Session_id |
Duration(sec) |
Status |
CurrentQuery |
CompleteQuery |
51 |
2101 |
suspended |
SELECT A.NUM,A.SESSIONLOGINDATETIME,A.SESSIONLOGINDATETIMETZID,A.USERID,A.NUMBERSEQUENCE,A.STATUS,A.SESSIONID,A.TRANSID,A.MODIFIEDDATETIME,A.MODIFIEDBY,A.MODIFIEDTRANSACTIONID,A.RECVERSION,A.RECID FROM NUMBERSEQUENCELIST A WITH( UPDLOCK) WHERE ((DATAAREAID=@P1) AND (TRANSID=@P2)) |
(@P1 nvarchar(5),@P2 bigint)SELECT A.NUM,A.SESSIONLOGINDATETIME,A.SESSIONLOGINDATETIMETZID,A.USERID,A.NUMBERSEQUENCE,A.STATUS,A.SESSIONID,A.TRANSID,A.MODIFIEDDATETIME,A.MODIFIEDBY,A.MODIFIEDTRANSACTIONID,A.RECVERSION,A.RECID FROM NUMBERSEQUENCELIST A WITH( UPDLOCK) WHERE ((DATAAREAID=@P1) AND (TRANSID=@P2)) |
52 |
1503 |
suspended |
SELECT A.NUM,A.SESSIONLOGINDATETIME,A.SESSIONLOGINDATETIMETZID,A.USERID,A.NUMBERSEQUENCE,A.STATUS,A.SESSIONID,A.TRANSID,A.MODIFIEDDATETIME,A.MODIFIEDBY,A.MODIFIEDTRANSACTIONID,A.RECVERSION,A.RECID FROM NUMBERSEQUENCELIST A WITH( UPDLOCK) WHERE ((DATAAREAID=@P1) AND (TRANSID=@P2)) |
(@P1 nvarchar(5),@P2 bigint)SELECT A.NUM,A.SESSIONLOGINDATETIME,A.SESSIONLOGINDATETIMETZID,A.USERID,A.NUMBERSEQUENCE,A.STATUS,A.SESSIONID,A.TRANSID,A.MODIFIEDDATETIME,A.MODIFIEDBY,A.MODIFIEDTRANSACTIONID,A.RECVERSION,A.RECID FROM NUMBERSEQUENCELIST A WITH( UPDLOCK) WHERE ((DATAAREAID=@P1) AND (TRANSID=@P2)) |