Hi all,
We are seeing below deadlocks in the sql server continuously which was raised from Nginn. GPSRuelactionqueue is nothing but the sql message queue which was created for our application
update top (1000) GPSRuleActionQueue with(READPAST) set subqueue='I' where subqueue='R' and retry_time <= getdate()
select top 1 id, correlation_id, from_endpoint, to_endpoint, retry_count, msg_text, msg_headers, unique_id, retry_time from GPSRuleActionQueue with (UPDLOCK, READPAST) where subqueue='I' order by retry_time
Can you please help us to avoid this deadlocks.