Data50 2020 02 - Feb 09
Data50 2020 02 - Feb 09
ms/DATA50 #MSIgniteTheTour
Optimize data warehousing
query performance
Speaker name
Title
aka.ms/DATA50 #MSIgniteTheTour
Resources
aka.ms/DATA50 #MSIgniteTheTour
Agenda
Maximizing Performance
aka.ms/DATA50 #MSIgniteTheTour
Agenda
aka.ms/DATA50 #MSIgniteTheTour
What is Azure Synapse
Analytics?
aka.ms/DATA50 #MSIgniteTheTour
Azure Synapse
Analytics
aka.ms/DATA50 #MSIgniteTheTour
Data Warehouse Processes
aka.ms/DATA50 #MSIgniteTheTour
Data Warehouse Architecture
Power BI
Dashboards
Serving
aka.ms/DATA50 #MSIgniteTheTour
Maximizing Performance
aka.ms/DATA50 #MSIgniteTheTour
Maximizing Query Performance
Table distribution
aka.ms/DATA50 #MSIgniteTheTour
Maximizing Query Performance
Is the default option for newly created
Round-robin distribution
tables
aka.ms/DATA50 #MSIgniteTheTour
Maximizing Query Performance
Hash distribution
Distributes rows based on the value in the
distribution column, using a deterministic
hash function to assign each row to one
Hash Distributed distribution.
Tables
Is designed to achieve high performance
for queries that run against large fact
tables in a star schema.
aka.ms/DATA50 #MSIgniteTheTour
Create statistics after loading
Improve the query performance for
users
Production
Tables
aka.ms/DATA50 #MSIgniteTheTour
Demo:
Query Performance
Tuning
aka.ms/DATA50 #MSIgniteTheTour
Query Performance Tuning
aka.ms/DATA50 #MSIgniteTheTour
Overcomes the 10,000-row limit of DMV’s,
output
aka.ms/DATA50 #MSIgniteTheTour
© Microsoft Corporation
Query Data Store
Dynamic Management Views
VIEW DATABASE
STATE permission
Query Query Text DMVs are in UTC
time zone
Sys.query_store_query Sys.query_query_text
Query_id (PK) Query_test_id (PK)
Plan
Sys.query_store_plan
Plan_id (PK)
aka.ms/DATA50 #MSIgniteTheTour
Query execution with Query Data Store CONTROL
1
Queries
5
Engine QDS
…
…
2 16 32 47
Stats
Tempdb
Adaptive
Cache
aka.ms/DATA50 #MSIgniteTheTour
Select the proper table distribution
aka.ms/DATA50 #MSIgniteTheTour
© Microsoft Corporation
/MS Learn alert
Complete interactive learning
exercises, watch videos, and
practice and apply your new
skills.
aka.ms/DATA50MSLearnCollection
aka.ms/DATA50 #MSIgniteTheTour
Resources
Session Resources
aka.ms/DATA50
aka.ms/DATA50 #MSIgniteTheTour
Optimize data warehousing
query performance
Speaker name
Title
aka.ms/DATA50 #MSIgniteTheTour