TblRequests table deadlocks: Apply optimization for Connector queries on TblRequests

XMLWordPrintable

    • 3

      Jira Connector queries are frequently causing deadlock on the table tblRequests and need improvement

      Example:

      @WmsConnectorId int)select 3 as ObjectType, t2.ProductID as ProgramID, t1.RequestID as ItemID, t1.ExternalID, t1.ExternalKey, t1.JIRAProjectKey, t7.Full_Name as LastUpdatedByName, NULL as DemoStatusDate, NULL as LifeCycleState  from tblRequests t1 inner join tblRequestsRecycleBin t2 on t1.RequestID = t2.RequestID  left outer join sysmemberpermssion t7 WITH (NOLOCK) on t7.UID = t2.Owner  where(t1.LastModifiedDate > DateAdd(DAY, -1, GETDATE()) and t1.LastModifiedDate is not null) and t1.JIRAProjectKey is not null   AND t1.WMSConnectorID = @WMSConnectorID   and t1.ProductID is null   and t1.InRecycleBin is not null and t1.CanceledObject is not null   
      

              Assignee:
              Andrew Zhang
              Reporter:
              Allan Silva (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: