Data loading into sql managed instance table taking time

Dixon Rodrigues 0 Reputation points
2025-01-02T09:13:19.56+00:00

Hi All,

we have couple of data loads in which the distribution is taking lot of time. Our source queries are extracting results in and around 15 minutes but as per sys.dm_pdw_sql_requests column operation_type=OnOperation and column distribution_type=Alldistribution data loading into a either Round Robin or Hash(Column) taking more than 45 minutes. Ofcourse we have crores of records to be loaded into the table.

There is no lack of any TempDB space observed. We have DW500C managed instance.

Any suggestion, insights that why the system is taking so much time while loading the data to a table.

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,149 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sai Raghunadh M 1,915 Reputation points Microsoft Vendor
    2025-01-02T12:00:50.9533333+00:00

    Hi @dixon Rodrigues

    Thanks for the question and using MS Q&A platform

    It appears that you are encountering a performance issue with query distribution in your SQL Managed Instance.

    Since the operation_type is set to OnOperation and the distribution_type to AllDistribution, it appears the query is being distributed across all distributions. This can be resource-intensive and time-consuming, particularly with a large volume of data.

    If possible, break down the data load into smaller batches. This can help reduce the load on each distribution and improve overall performance.

    If your source data is remote, network latency can be a factor. Ensure the data transfer speed is optimal.

    Check that no resource limits are imposed by the Resource Governor that might slow down your load process.

    Please refer to these Documentations for Additional Information:

    https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-service-capacity-limits#metadata

    https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-pdw-sql-requests-transact-sql?view=aps-pdw-2016-au7

    https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-distribute

    Hope this helps. Do let us know if you any further queries. If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.