Synapse Serverless - Deadlock

Ryan Abbey 1,181 Reputation points
2022-06-16T21:05:29.13+00:00

I think this is something I need to raise a support request over but before I do, thought I would see if it's been experienced elsewhere and how it was resolved (more a setting change than a query change as I'm not looking for "row_number" style resolutions)

In our Synapse serverless environment, if we run a "select *" query, it executes fine, however, if we do a "select top 10 *" it fails with

Transaction (Process ID 153) was deadlocked on generic waitable object resources with another process and has been chosen as the deadlock victim. Rerun the transaction

It seems somehow the "top" is causing a lock that then causes the select to deadlock (or vice versa) but why? and is there something we can set to avoid?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,239 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.