Scaling operations in a dedicated SQL pool can take several minutes to complete, and the time it takes can be influenced by various factors, including the state of in-flight transactions. When you initiate a scale operation, the system first cancels all incoming queries and rolls back any ongoing transactions to ensure a consistent state. This rollback can significantly impact the time it takes to complete the scale operation, especially if there are long-running transactions that need to be undone.
If your dedicated SQL pool is now taking 20-30 minutes to scale compared to an average of 10 minutes or less previously, it may be worth investigating the following:
- In-flight Transactions: Ensure that there are no long-running transactions when you initiate the scale operation. Allowing existing transactions to finish before scaling can help reduce the time taken.
- Query Performance: If scaling out does not improve performance, consider checking for issues such as data skew or excessive data movement, which can affect performance during scaling operations.
- Resource Allocation: Review the current resource allocation and consider whether the current Data Warehouse Units (DWUs) are sufficient for your workload demands.
If this issue has recurred, it might be beneficial to look into any changes in workload or configuration that could have contributed to the longer scaling times.
References: