SQL job get blocked after some time by a process on master DB

Leekha,Mohit,IN-Kolkata 0 Reputation points
2024-01-02T13:08:53.1966667+00:00

I have a job which performs following steps on high level
1.) Load Stage table
2.) Load Fact table
3.) Apply lots of rules on fact table, so lots of updates

This was working fine for more than a year but now it gets stuck after applying some of the rules. Every time gets stuck at a different rule.

SP_WHOISACTIVE suggests that some other session is blocking the update of dataUser's image

When I looked up the blocking session, its a sleeping session initiated by SA on master. It seems like for some reason SQL decides to block this execution after some time.
Please suggestUser's image

My sql server is hosted in Azure using elastic pool and i have already tried to increase the db storage and cores by 25% but no luck

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,979 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,653 questions
{count} votes

2 answers

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,477 Reputation points Microsoft Employee
    2024-01-03T16:09:04.0033333+00:00

    @Leekha,Mohit,IN-Kolkata I search and found few posts talking about this. if this doesn't help then please raise a support case for deeper investigation.

    Background Index Creation on SQL Server - Database Administrators Stack Exchange

    Regards

    Geetha

    0 comments No comments

  2. Erland Sommarskog 112.7K Reputation points MVP
    2024-01-03T22:16:48.39+00:00

    Azure SQL Database has a feature known as automatic indexing. You can read more about it in the topic Automatic tuning in Azure SQL Database and Azure SQL Managed Instance. The topic also has reference to documentation how you can enable and disable this feature. Maybe you should disable it before you start your load, and re-enable it when you are done.

    0 comments No comments

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.