Where does a Synapse dedicated index "live"?

JenP 50 Reputation points
2023-11-06T20:08:21.5233333+00:00

In a dedicated Synapse pool, do non-clustered indexes "live" on the compute node? Since they're not physical, I'd imagine that they're not in the distribution storage, correct?

On a related note, if data movement happens (either between nodes or between distributions in the same node), how does Synapse use the indexes? My best guess is that if data movement is always just a copy into tempDB as a heap, then it sort of "loses" the benefit of the original index. Is that right?

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.
4,919 questions
0 comments No comments
{count} vote

Accepted answer
  1. Pramod o 155 Reputation points
    2023-11-07T12:58:06.44+00:00

    Hi @JenP,

    In a dedicated Synapse pool, non-clustered indexes do not "live" on the compute node.

    Since they are not physical, they are not stored in the distribution storage either.

    Non-clustered indexes are stored separately from the table and serve as pointers to the physical storage, which is usually unordered.

    When data movement occurs, such as between nodes or between distributions in the same node, the indexes may lose their benefit

    When data movement happens in Synapse Analytics, the indexes are still used to optimize query performance.

    If data movement is between distributions in the same node, the indexes are still used to optimize the query performance.

    If data movement is between nodes, the query performance may be impacted due to the data movement.

    When data movement is always just a copy into tempDB as a heap, then the original index is not used. But, if the data is moved to a table with the same schema,

    the index can be rebuilt on the new table and can be used to optimize query performance.

    Reference link:

    https://afolabianimashaun.medium.com/understanding-indexes-in-azure-synapse-to-optimize-perfomance-ccb148d1bb18

    https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/massively-parallel-processing-mpp-architecture

    Hope this info helps

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.