The full answer
Most slow queries in a dedicated SQL pool come from data movement between distributions, poor columnstore quality, stale statistics or too little memory per query. Fix them in that order: distribution, indexes, statistics, then workload management and scale.
1. Distribution: avoid data movement
- A table's rows are spread across 60 distributions. Hash-distribute large fact tables on a column that has many distinct values, is used in joins, and is not used mainly in
WHEREfilters, so joins between tables distributed on the same key need no shuffle. - Replicate small dimension tables (Microsoft suggests under 2 GB compressed), so every compute node has a full copy.
- Use round-robin for staging tables and when there is no good key.
- Check skew with
DBCC PDW_SHOWSPACEUSED, and look forShuffleMoveOperationandBroadcastMoveOperationin the plan (EXPLAIN).
CREATE TABLE dbo.FactSales
WITH (DISTRIBUTION = HASH(CustomerKey), CLUSTERED COLUMNSTORE INDEX)
AS SELECT * FROM stg.Sales;
2. Indexes: healthy columnstores
- A clustered columnstore index is the default and right for large tables. Rowgroups compress best near 1 million rows; many small or open rowgroups slow scans, so load in large batches and rebuild indexes after heavy trickle loads.
- An ordered clustered columnstore index on a common filter column (such as a date) lets segment elimination skip more data.
- Heaps suit staging; clustered and nonclustered rowstore indexes suit small lookup patterns only.
3. Statistics Automatic creation of statistics is on by default, but statistics are not refreshed for you after large loads. Update them on join, filter and group-by columns after significant changes:
UPDATE STATISTICS dbo.FactSales;
4. Resources and concurrency
- Use workload management (workload groups, classifiers and importance) to give heavy queries enough memory and keep loads and reports apart; it replaces the older resource classes.
- Scale data warehouse units (
ALTER DATABASE ... MODIFY (SERVICE_OBJECTIVE = 'DW2000c')) when queries are already efficient but need more compute.
5. Pre-compute and cache
- Materialized views store pre-computed joins and aggregates, and the optimizer uses them automatically.
- Result set caching keeps results in the database for repeated queries, and cached queries use no concurrency slots.
6. Query writing Filter early, select only needed columns, join on distribution keys with matching data types, and break very large queries into steps with CTAS into tables distributed for the next join.
For new warehouses, Microsoft now recommends Fabric Data Warehouse, but these principles explain how distributed SQL engines behave generally.
Last updated 16 October 2026
Sources