SlideShare a Scribd company logo
Azure SQL DWH
Big data-as-a-service by
About me
4/4/2016 Azure SQL DWH
 Shy Engelberg, CTO @
 Email : Shy@Valinor.co.il
 Phone : 054-771-711-5
 Twitter : @ShyEngelberg
2 |
Agenda
4/4/2016 Azure SQL DWH
 SQL DWH introduction
 Architecture
 Creating a DWH
 Loading data
 Tools
 Summary
3 |
Objectives
4/4/2016 Azure SQL DWH
 Know what Azure SQL Data warehouse is
 Know how Azure SQL Data warehouse works
 Know how to create and connect to Azure
SQL Data warehouse
 Know the basics tools and methods to get
started with developing
 Identify scenarios that this solution might suit.
4 |
The data warehouse fairytale
 Once upon a time, data warehouse was an appliance who required
fixed combinations of
storage and compute,
often underutilizing
expensive resources.
Meaning
monstrous
hardware was
lying unused.
The data warehouse fairytale
 Once upon a time, data warehouse was an appliance who required
fixed combinations of
storage and compute,
often underutilizing
expensive resources.
Meaning
monstrous
hardware was
lying unused.
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH7 |
 an enterprise-class, distributed database
capable of processing massive volumes of
relational and non-relational data.
 It is the industry's first cloud data warehouse
that combines proven SQL capabilities with
the ability to grow, shrink, and pause in
seconds.
 Now on GA! (July 14th)
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH8 |
 an enterprise-class,
capable of of
and data.
 It is the industry's first data warehouse
that combines proven with
the ability to in
seconds.
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH9 |
– Azure PaaS
– an MPP
– up to PBs
– a relational DB that can
query also non-relational data
– based on the product we know and
love
– use what you need, when
you need it.
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH10 |
 Easily deploys in seconds.
 Pay for query performance only when you
need it (or you can pause it completely)
 Fully managed service, removes the hassle
of software patching, maintenance, back-ups.
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH11 |
SQL Data Warehouse uses Microsoft’s
massively parallel processing (MPP)
architecture. You pay for time-to-insight, not
hardware. (details are a few slides ahead)
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH12 |
Using PolyBase, leverage Transact-SQL to
query seamlessly across both relational data in
a relational database and non-relational data in
common Hadoop formats.
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH13 |
SQL Data Warehouse is based on the proven
relational database engine of SQL Server and
includes the features you expect, including
stored procedures, UDF’s, partitioning, indexes,
and collations.
If you already know Transact-SQL, its easy to
transfer your knowledge to SQL Data
Warehouse.
What is Azure SQL Data warehouse
4/4/2016 Azure SQL DWH14 |
You can grow or shrink compute power in
minutes. Take full advantage of storage at
cloud scale, and apply query compute based
on changing performance needs.
When compute is paused, you pay only for
storage.
Architecture
4/4/2016 Azure SQL DWH15 |
 At its core, SQL Data Warehouse uses
Microsoft’s massive parallel processing
(MPP) architecture, originally designed to run
some of the largest on-premises enterprise
data warehouses.
Architecture
4/4/2016 Azure SQL DWH16 |
 At its core, SQL Data Warehouse uses
Microsoft’s
architecture, originally designed to run
some of the largest on-premises enterprise
data warehouses.
Architecture – MPP
The coordinated processing of a program by
multiple processors working on different parts
of the program.
Each processor has its own operating system
and memory.
The MPP way
Mission-
process
a lot of
data
The SMP way
Scale
for better
performance
The SMP way The MPP way
Architecture – MPP
Architecture – MPP
 Breaks a large queries across nodes for
simultaneous processing.
 Every node is “working” on a local subset of the
data.
 Capable of higher data ingestion rates through
parallelization.
 Scale horizontally by adding nodes, rather than
moving to a server with more CPUs or higher
storage capacity.
 Unlike SMP – there is no single bottleneck.
Architecture – Azure SQL Data warehouse
 SQL Data Warehouse independently scales
compute and storage.
 This concept is what allows us the ability to
pause compute, scale performance in
seconds, and pay only for the performance
we need.
Architecture – Azure SQL Data warehouse
 SQL Data Warehouse
.
 This concept is what allows us the ability to
, and
we need.
Architecture – Azure SQL Data warehouse
Data management service
Control node (MPP engine)
Control DBs TempDBMaster
SQL Server
Azure blob storage
Data management service
Compute node 2
User Data
SQL
Server
Data management service
Compute node 1
User Data
SQL
Server
Architecture – Azure SQL Data warehouse
Data management service
Control node (MPP engine)
Control DBs TempDBMaster
SQL Server
• “Controls" the system.
• It is the front end that interacts with all
applications and connections.
• powered by SQL Database, and
connecting to it looks and feels the
same.
• Under the surface, the Control node
coordinates all of the data movement
and computation required to run parallel
queries on your distributed data.
• When you submit a TSQL query to SQL
Data Warehouse, the Control node
transforms it into separate queries that
will run on each Compute node in
parallel.
Architecture – Azure SQL Data warehouse
Data management service
Control node (MPP engine)
Control DBs TempDBMaster
SQL Server
Azure blob storage
Data management service
Compute node 2
User Data
SQL
Server
Data management service
Compute node 1
User Data
SQL
Server
Architecture – Azure SQL Data warehouse
User Data
SQL
Server
Data management service
Compute node 1
User Data
SQL
Server
 SQL Databases which
process your query
steps and manage
your data.
 The Compute nodes
are the workers that
run the parallel
queries on your data.
 After processing, they
pass the results back
to the Control node.
To finish the
query, the
Control node
aggregates the
results and
returns the
final result.
Architecture – Azure SQL Data warehouse
Data management service
Control node (MPP engine)
Control DBs TempDBMaster
SQL Server
Azure blob storage
Data management service
Compute node 2
User Data
SQL
Server
Data management service
Compute node 1
User Data
SQL
Server
Architecture – Azure SQL Data warehouse
 Data Movement Service (DMS)
is our technology for moving
data between the nodes.
 DMS gives the Compute nodes
access to data they need for
joins and aggregations.
 DMS is not an Azure service. It
is a Windows service that runs
alongside SQL Database on all
the nodes.
Data management service
Architecture – Azure SQL Data warehouse
Data management service
Control node (MPP engine)
Control DBs TempDBMaster
SQL Server
Azure blob storage
Data management service
Compute node 2
User Data
SQL
Server
Data management service
Compute node 1
User Data
SQL
Server
Architecture – Azure SQL Data warehouse
Azure blob storage
 Data is stored in Azure Storage Blobs.
 When Compute nodes interact with
data, they write and read directly to and
from blob storage.
 Since Azure storage expands
transparently and limitlessly, SQL Data
Warehouse can do the same.
 Since compute and storage are
independent, SQL Data Warehouse can
automatically scale storage separately
from scaling compute, and vice-versa.
Azure Storage is fully fault tolerant.
Architecture – scaling
 Since each compute node only works on a
subset of the data, if we want to scale, all we
need to do is add more compute nodes.
 The “Magic” is that we can add more
compute nodes without moving
(redistributing) the data.
 The scaling takes only a couple of minutes
(initializing the compute node)
Architecture – scaling
 Changing the amount of
compute is as simple as
moving a slider to the
left or right, but can also be
scheduled using T-SQL or PShell.
 Compute usage in SQL Data
Warehouse is measured
using SQL Data Warehouse Units (DWUs).
Architecture – data distribution
 All tables are distributed.
 Each distribution is like a bucket;
storing a unique subset of the data.
 For now, SQL DW has 60 distributions.
Each table is divided into 60 different distributions,
from the moment it’s created.
When there’s only one compute node, it holds all
distributions, when there’s more, the distributions
are spread among them.
Architecture – finally
 Bring all the data you want, pay only for the
storage.
 If you want to query your data (dahhh), pay
only for the compute you need, when you
need.
 Classic MPP design, scaling is almost linear.
 We don’t really need to know how many
nodes or distributes are there under the cover
– it’s a PaaS, we are guaranteed a certain
amount of performance.
Creating a DWH
 Creating is simple as 1,2,3…
 DWH is defined in a “Server”
just like Azure SQL database.
 Pause and scale are a button away.
DEMO
Creating a table – distribution
 When a table is created, it is spread across
all of the distributions.
 We need to choose how to distribute the
data:
 Hash
 Round-robin
(evenly but randomly,
default behavior)
Creating a table – type
 The default behavior is that a table is created
with a clustered column store index.
(which makes Azure SQL DWH, a columnar
database)
 Choose, what type of table during creation:
Creating a table – statistics
 Statistics are not created automatically,
we have to create them ourselves!
 Statistics are not updated automatically!
Connecting and creating a table
DEMO
 Add firewall rule
 Connect using SSMS
 Create a table
 Create statistics
Loading data
 SQL Data Warehouse supports many loading
methods:
 SSIS
 BCP
 SQLBulkCopy API
 Azure Data Factory
PolyBase
The “Push” methods – a query
that goes through the “control
node”, which becomes a
bottleneck. (single-client gated)
by far the fastest and most
scalable SQL Data Warehouse
loading method to date
Loading data – PolyBase
 PolyBase is a scalable, query processing
framework compatible with Transact-SQL that
can be used to combine and bridge data across
relational database management systems and
Azure Blob Storage.
 Currently PolyBase can load data from UTF-8
encoded delimited text files as well as the
popular Hadoop file formats RC File, ORC, and
Parquet.
PolyBase can load data from gzip, zlib and
Snappy compressed files.
 A “Pull” method.
 Every compute node,
has an HDFS bridge
in the DMS service.
Every bridge can
parallel connect to
external resources.
Loading data – PolyBase
 PolyBase data loading is not limited by the
Control node, and so as you scale out your
DWU, your data transfer throughput also
increases.
 A recommended way of loading data:
1. write your source to CSV files
2. put the files in Azure Blob Storage
3. Load using PolyBase
Loading data – PolyBase
Loading data – PolyBase
DEMO
 Query using PolyBase
 CTAS to load data using PolyBase
This is SQL Server inside – you know it all.
 Uses almost the same T-SQL.
 Supports views, stored procedures, partitions
and many other known and loved features.
 Built-in HADR (it’s a PaaS, remember?)
 Out-of-the-box backup and restore service.
Azure SQL Data warehouse – features
 SSMS is not yet fully supported  (but very
soon) – SSMS is supported (July 14th)!
 Visual studio (SSDT) is supported 
 Integrates easily to Azure ML, PowerBI and
Data Factory.
 Many 3rd party solutions are available:
Azure SQL Data warehouse – tools
 Best used for data processing scenarios, not
as a data store all users can query, because:
 Concurrency is very limited (like all MPPs)
 Use to load data, process it, and move it to
the next step or for individual queries that
needs massive amount of processing.
Azure SQL Data warehouse – usage
Azure SQL Data warehouse – Summary
 A relational columnar DWH.
 MPP service that allows us to scale compute in
separate from storage.
 We can pause the compute whenever needed.
 Using the infinite power of the cloud, we can
process as much data as we want, and use as
much power as we want.
 We don’t need to buy expensive hardware.
Azure SQL Data warehouse – Summary
Best for:
 Your data is already in Azure.
 You need scheduled computing power for
data processing.
 You have a lot of data, but don’t want to
spend a lot of money.
 Not for concurrent querying!
THANK YOU!
Questions?

More Related Content

What's hot (20)

PPTX
What's new in SQL Server 2016
James Serra
 
PPTX
Azure Lowlands: An intro to Azure Data Lake
Rick van den Bosch
 
PPTX
Snowflake essentials
qureshihamid
 
PPTX
Microsoft Data Platform - What's included
James Serra
 
PDF
Changing the game with cloud dw
elephantscale
 
PDF
Introduction to Azure Data Lake
Antonios Chatzipavlis
 
PPTX
HA/DR options with SQL Server in Azure and hybrid
James Serra
 
PDF
Data warehouse con azure synapse analytics
Eduardo Castro
 
PDF
Azure Data Factory V2; The Data Flows
Thomas Sykes
 
PPTX
Afternoons with Azure - Azure Data Services
CCG
 
PPTX
Snowflake Datawarehouse Architecturing
Ishan Bhawantha Hewanayake
 
PPTX
Azure data platform overview
James Serra
 
PPTX
Microsoft cloud big data strategy
James Serra
 
PPTX
Azure SQL Database Managed Instance
James Serra
 
PPTX
An intro to Azure Data Lake
Rick van den Bosch
 
PPTX
Cortana Analytics Suite
James Serra
 
PDF
Delivering rapid-fire Analytics with Snowflake and Tableau
Harald Erb
 
PPTX
Store Data in Azure SQL Database
Suhail Jamaldeen
 
PDF
Self-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Grega Kespret
 
PDF
Dipping Your Toes: Azure Data Lake for DBAs
Bob Pusateri
 
What's new in SQL Server 2016
James Serra
 
Azure Lowlands: An intro to Azure Data Lake
Rick van den Bosch
 
Snowflake essentials
qureshihamid
 
Microsoft Data Platform - What's included
James Serra
 
Changing the game with cloud dw
elephantscale
 
Introduction to Azure Data Lake
Antonios Chatzipavlis
 
HA/DR options with SQL Server in Azure and hybrid
James Serra
 
Data warehouse con azure synapse analytics
Eduardo Castro
 
Azure Data Factory V2; The Data Flows
Thomas Sykes
 
Afternoons with Azure - Azure Data Services
CCG
 
Snowflake Datawarehouse Architecturing
Ishan Bhawantha Hewanayake
 
Azure data platform overview
James Serra
 
Microsoft cloud big data strategy
James Serra
 
Azure SQL Database Managed Instance
James Serra
 
An intro to Azure Data Lake
Rick van den Bosch
 
Cortana Analytics Suite
James Serra
 
Delivering rapid-fire Analytics with Snowflake and Tableau
Harald Erb
 
Store Data in Azure SQL Database
Suhail Jamaldeen
 
Self-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Grega Kespret
 
Dipping Your Toes: Azure Data Lake for DBAs
Bob Pusateri
 

Viewers also liked (20)

PDF
AnalyticsConf : Azure SQL Data Warehouse
Wlodek Bielski
 
PDF
SQL Azure Data Warehouse - Silviu Niculita
ITCamp
 
PPTX
Introducing Azure SQL Database
James Serra
 
PPTX
20060416 Azure Boot Camp 2016- Azure Data Lake Storage and Analytics
Łukasz Grala
 
PPTX
Microsoft Azure Batch
Khalid Salama
 
PDF
[JSS2015] Azure SQL Data Warehouse - Azure Data Lake
GUSS
 
PPTX
SQL Saturday #313 Rheinland - MapReduce in der Praxis
Sascha Dittmann
 
PDF
How to deploy SQL Server on an Microsoft Azure virtual machines
SolarWinds
 
PPTX
Geek Sync I Polybase and Time Travel (Temporal Tables)
IDERA Software
 
PDF
Datawarehouse como servicio en azure (sqldw)
Enrique Catala Bañuls
 
PPTX
Enterprise Cloud Data Platforms - with Microsoft Azure
Khalid Salama
 
PPTX
Machine learning with Spark
Khalid Salama
 
PPTX
Intorducing Big Data and Microsoft Azure
Khalid Salama
 
PDF
Cortana Analytics Workshop: Azure Data Lake
MSAdvAnalytics
 
PPTX
Microsoft Azure - SQL Data Warehouse
Microsoft
 
PPTX
Building the Data Lake with Azure Data Factory and Data Lake Analytics
Khalid Salama
 
PPTX
Azure Data platform
Mostafa
 
PPTX
Choosing technologies for a big data solution in the cloud
James Serra
 
PPTX
Big Data Analytics in the Cloud with Microsoft Azure
Mark Kromer
 
PPTX
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Ilyas F ☁☁☁
 
AnalyticsConf : Azure SQL Data Warehouse
Wlodek Bielski
 
SQL Azure Data Warehouse - Silviu Niculita
ITCamp
 
Introducing Azure SQL Database
James Serra
 
20060416 Azure Boot Camp 2016- Azure Data Lake Storage and Analytics
Łukasz Grala
 
Microsoft Azure Batch
Khalid Salama
 
[JSS2015] Azure SQL Data Warehouse - Azure Data Lake
GUSS
 
SQL Saturday #313 Rheinland - MapReduce in der Praxis
Sascha Dittmann
 
How to deploy SQL Server on an Microsoft Azure virtual machines
SolarWinds
 
Geek Sync I Polybase and Time Travel (Temporal Tables)
IDERA Software
 
Datawarehouse como servicio en azure (sqldw)
Enrique Catala Bañuls
 
Enterprise Cloud Data Platforms - with Microsoft Azure
Khalid Salama
 
Machine learning with Spark
Khalid Salama
 
Intorducing Big Data and Microsoft Azure
Khalid Salama
 
Cortana Analytics Workshop: Azure Data Lake
MSAdvAnalytics
 
Microsoft Azure - SQL Data Warehouse
Microsoft
 
Building the Data Lake with Azure Data Factory and Data Lake Analytics
Khalid Salama
 
Azure Data platform
Mostafa
 
Choosing technologies for a big data solution in the cloud
James Serra
 
Big Data Analytics in the Cloud with Microsoft Azure
Mark Kromer
 
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Ilyas F ☁☁☁
 
Ad

Similar to Azure SQL DWH (20)

PPTX
Exploring Microsoft Azure Infrastructures
CCG
 
PPTX
AZURE Data Related Services
Ruslan Drahomeretskyy
 
PDF
Best-Practices-for-Using-Tableau-With-Snowflake.pdf
ssuserf8f9b2
 
PPTX
Scalable relational database with SQL Azure
Shy Engelberg
 
PPTX
Azure Synapse Analytics Overview (r2)
James Serra
 
PDF
Azure Data Engineer Interview Questions By ScholarHat
Scholarhat
 
PPTX
Azure synapse by usama whaba khan
Usama Wahab Khan Cloud, Data and AI
 
PDF
Azure SQL Data Warehouse
Antonios Chatzipavlis
 
PPTX
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
Mark Kromer
 
PDF
Sql server 2016 Discovery Day
Thomas Sykes
 
PPTX
Azure SQL Database
Palash Debnath
 
PPTX
No sql database
vishal gupta
 
PDF
Prague data management meetup 2018-03-27
Martin Bém
 
DOCX
UNIT -IV.docx
Revathiparamanathan
 
PDF
Azure Data Factory Interview Questions PDF By ScholarHat
Scholarhat
 
PPTX
Azure data platform overview
Alessandro Melchiori
 
DOCX
Microsoft Fabric data warehouse by dataplatr
ajaykumar405166
 
PDF
Microsoft Azure Cloud Master-Cheat-Sheet
Mohan Arumugam
 
PPTX
Azure Data.pptx
FedoRam1
 
PPTX
01_DP-300T00A-Intro.pptx
KareemBullard1
 
Exploring Microsoft Azure Infrastructures
CCG
 
AZURE Data Related Services
Ruslan Drahomeretskyy
 
Best-Practices-for-Using-Tableau-With-Snowflake.pdf
ssuserf8f9b2
 
Scalable relational database with SQL Azure
Shy Engelberg
 
Azure Synapse Analytics Overview (r2)
James Serra
 
Azure Data Engineer Interview Questions By ScholarHat
Scholarhat
 
Azure synapse by usama whaba khan
Usama Wahab Khan Cloud, Data and AI
 
Azure SQL Data Warehouse
Antonios Chatzipavlis
 
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
Mark Kromer
 
Sql server 2016 Discovery Day
Thomas Sykes
 
Azure SQL Database
Palash Debnath
 
No sql database
vishal gupta
 
Prague data management meetup 2018-03-27
Martin Bém
 
UNIT -IV.docx
Revathiparamanathan
 
Azure Data Factory Interview Questions PDF By ScholarHat
Scholarhat
 
Azure data platform overview
Alessandro Melchiori
 
Microsoft Fabric data warehouse by dataplatr
ajaykumar405166
 
Microsoft Azure Cloud Master-Cheat-Sheet
Mohan Arumugam
 
Azure Data.pptx
FedoRam1
 
01_DP-300T00A-Intro.pptx
KareemBullard1
 
Ad

Recently uploaded (20)

PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 

Azure SQL DWH

  • 1. Azure SQL DWH Big data-as-a-service by
  • 2. About me 4/4/2016 Azure SQL DWH  Shy Engelberg, CTO @  Email : [email protected]  Phone : 054-771-711-5  Twitter : @ShyEngelberg 2 |
  • 3. Agenda 4/4/2016 Azure SQL DWH  SQL DWH introduction  Architecture  Creating a DWH  Loading data  Tools  Summary 3 |
  • 4. Objectives 4/4/2016 Azure SQL DWH  Know what Azure SQL Data warehouse is  Know how Azure SQL Data warehouse works  Know how to create and connect to Azure SQL Data warehouse  Know the basics tools and methods to get started with developing  Identify scenarios that this solution might suit. 4 |
  • 5. The data warehouse fairytale  Once upon a time, data warehouse was an appliance who required fixed combinations of storage and compute, often underutilizing expensive resources. Meaning monstrous hardware was lying unused.
  • 6. The data warehouse fairytale  Once upon a time, data warehouse was an appliance who required fixed combinations of storage and compute, often underutilizing expensive resources. Meaning monstrous hardware was lying unused.
  • 7. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH7 |  an enterprise-class, distributed database capable of processing massive volumes of relational and non-relational data.  It is the industry's first cloud data warehouse that combines proven SQL capabilities with the ability to grow, shrink, and pause in seconds.  Now on GA! (July 14th)
  • 8. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH8 |  an enterprise-class, capable of of and data.  It is the industry's first data warehouse that combines proven with the ability to in seconds.
  • 9. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH9 | – Azure PaaS – an MPP – up to PBs – a relational DB that can query also non-relational data – based on the product we know and love – use what you need, when you need it.
  • 10. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH10 |  Easily deploys in seconds.  Pay for query performance only when you need it (or you can pause it completely)  Fully managed service, removes the hassle of software patching, maintenance, back-ups.
  • 11. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH11 | SQL Data Warehouse uses Microsoft’s massively parallel processing (MPP) architecture. You pay for time-to-insight, not hardware. (details are a few slides ahead)
  • 12. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH12 | Using PolyBase, leverage Transact-SQL to query seamlessly across both relational data in a relational database and non-relational data in common Hadoop formats.
  • 13. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH13 | SQL Data Warehouse is based on the proven relational database engine of SQL Server and includes the features you expect, including stored procedures, UDF’s, partitioning, indexes, and collations. If you already know Transact-SQL, its easy to transfer your knowledge to SQL Data Warehouse.
  • 14. What is Azure SQL Data warehouse 4/4/2016 Azure SQL DWH14 | You can grow or shrink compute power in minutes. Take full advantage of storage at cloud scale, and apply query compute based on changing performance needs. When compute is paused, you pay only for storage.
  • 15. Architecture 4/4/2016 Azure SQL DWH15 |  At its core, SQL Data Warehouse uses Microsoft’s massive parallel processing (MPP) architecture, originally designed to run some of the largest on-premises enterprise data warehouses.
  • 16. Architecture 4/4/2016 Azure SQL DWH16 |  At its core, SQL Data Warehouse uses Microsoft’s architecture, originally designed to run some of the largest on-premises enterprise data warehouses.
  • 17. Architecture – MPP The coordinated processing of a program by multiple processors working on different parts of the program. Each processor has its own operating system and memory.
  • 18. The MPP way Mission- process a lot of data The SMP way
  • 21. Architecture – MPP  Breaks a large queries across nodes for simultaneous processing.  Every node is “working” on a local subset of the data.  Capable of higher data ingestion rates through parallelization.  Scale horizontally by adding nodes, rather than moving to a server with more CPUs or higher storage capacity.  Unlike SMP – there is no single bottleneck.
  • 22. Architecture – Azure SQL Data warehouse  SQL Data Warehouse independently scales compute and storage.  This concept is what allows us the ability to pause compute, scale performance in seconds, and pay only for the performance we need.
  • 23. Architecture – Azure SQL Data warehouse  SQL Data Warehouse .  This concept is what allows us the ability to , and we need.
  • 24. Architecture – Azure SQL Data warehouse Data management service Control node (MPP engine) Control DBs TempDBMaster SQL Server Azure blob storage Data management service Compute node 2 User Data SQL Server Data management service Compute node 1 User Data SQL Server
  • 25. Architecture – Azure SQL Data warehouse Data management service Control node (MPP engine) Control DBs TempDBMaster SQL Server • “Controls" the system. • It is the front end that interacts with all applications and connections. • powered by SQL Database, and connecting to it looks and feels the same. • Under the surface, the Control node coordinates all of the data movement and computation required to run parallel queries on your distributed data. • When you submit a TSQL query to SQL Data Warehouse, the Control node transforms it into separate queries that will run on each Compute node in parallel.
  • 26. Architecture – Azure SQL Data warehouse Data management service Control node (MPP engine) Control DBs TempDBMaster SQL Server Azure blob storage Data management service Compute node 2 User Data SQL Server Data management service Compute node 1 User Data SQL Server
  • 27. Architecture – Azure SQL Data warehouse User Data SQL Server Data management service Compute node 1 User Data SQL Server  SQL Databases which process your query steps and manage your data.  The Compute nodes are the workers that run the parallel queries on your data.  After processing, they pass the results back to the Control node. To finish the query, the Control node aggregates the results and returns the final result.
  • 28. Architecture – Azure SQL Data warehouse Data management service Control node (MPP engine) Control DBs TempDBMaster SQL Server Azure blob storage Data management service Compute node 2 User Data SQL Server Data management service Compute node 1 User Data SQL Server
  • 29. Architecture – Azure SQL Data warehouse  Data Movement Service (DMS) is our technology for moving data between the nodes.  DMS gives the Compute nodes access to data they need for joins and aggregations.  DMS is not an Azure service. It is a Windows service that runs alongside SQL Database on all the nodes. Data management service
  • 30. Architecture – Azure SQL Data warehouse Data management service Control node (MPP engine) Control DBs TempDBMaster SQL Server Azure blob storage Data management service Compute node 2 User Data SQL Server Data management service Compute node 1 User Data SQL Server
  • 31. Architecture – Azure SQL Data warehouse Azure blob storage  Data is stored in Azure Storage Blobs.  When Compute nodes interact with data, they write and read directly to and from blob storage.  Since Azure storage expands transparently and limitlessly, SQL Data Warehouse can do the same.  Since compute and storage are independent, SQL Data Warehouse can automatically scale storage separately from scaling compute, and vice-versa. Azure Storage is fully fault tolerant.
  • 32. Architecture – scaling  Since each compute node only works on a subset of the data, if we want to scale, all we need to do is add more compute nodes.  The “Magic” is that we can add more compute nodes without moving (redistributing) the data.  The scaling takes only a couple of minutes (initializing the compute node)
  • 33. Architecture – scaling  Changing the amount of compute is as simple as moving a slider to the left or right, but can also be scheduled using T-SQL or PShell.  Compute usage in SQL Data Warehouse is measured using SQL Data Warehouse Units (DWUs).
  • 34. Architecture – data distribution  All tables are distributed.  Each distribution is like a bucket; storing a unique subset of the data.  For now, SQL DW has 60 distributions. Each table is divided into 60 different distributions, from the moment it’s created. When there’s only one compute node, it holds all distributions, when there’s more, the distributions are spread among them.
  • 35. Architecture – finally  Bring all the data you want, pay only for the storage.  If you want to query your data (dahhh), pay only for the compute you need, when you need.  Classic MPP design, scaling is almost linear.  We don’t really need to know how many nodes or distributes are there under the cover – it’s a PaaS, we are guaranteed a certain amount of performance.
  • 36. Creating a DWH  Creating is simple as 1,2,3…  DWH is defined in a “Server” just like Azure SQL database.  Pause and scale are a button away. DEMO
  • 37. Creating a table – distribution  When a table is created, it is spread across all of the distributions.  We need to choose how to distribute the data:  Hash  Round-robin (evenly but randomly, default behavior)
  • 38. Creating a table – type  The default behavior is that a table is created with a clustered column store index. (which makes Azure SQL DWH, a columnar database)  Choose, what type of table during creation:
  • 39. Creating a table – statistics  Statistics are not created automatically, we have to create them ourselves!  Statistics are not updated automatically!
  • 40. Connecting and creating a table DEMO  Add firewall rule  Connect using SSMS  Create a table  Create statistics
  • 41. Loading data  SQL Data Warehouse supports many loading methods:  SSIS  BCP  SQLBulkCopy API  Azure Data Factory PolyBase The “Push” methods – a query that goes through the “control node”, which becomes a bottleneck. (single-client gated) by far the fastest and most scalable SQL Data Warehouse loading method to date
  • 42. Loading data – PolyBase  PolyBase is a scalable, query processing framework compatible with Transact-SQL that can be used to combine and bridge data across relational database management systems and Azure Blob Storage.  Currently PolyBase can load data from UTF-8 encoded delimited text files as well as the popular Hadoop file formats RC File, ORC, and Parquet. PolyBase can load data from gzip, zlib and Snappy compressed files.
  • 43.  A “Pull” method.  Every compute node, has an HDFS bridge in the DMS service. Every bridge can parallel connect to external resources. Loading data – PolyBase
  • 44.  PolyBase data loading is not limited by the Control node, and so as you scale out your DWU, your data transfer throughput also increases.  A recommended way of loading data: 1. write your source to CSV files 2. put the files in Azure Blob Storage 3. Load using PolyBase Loading data – PolyBase
  • 45. Loading data – PolyBase DEMO  Query using PolyBase  CTAS to load data using PolyBase
  • 46. This is SQL Server inside – you know it all.  Uses almost the same T-SQL.  Supports views, stored procedures, partitions and many other known and loved features.  Built-in HADR (it’s a PaaS, remember?)  Out-of-the-box backup and restore service. Azure SQL Data warehouse – features
  • 47.  SSMS is not yet fully supported  (but very soon) – SSMS is supported (July 14th)!  Visual studio (SSDT) is supported   Integrates easily to Azure ML, PowerBI and Data Factory.  Many 3rd party solutions are available: Azure SQL Data warehouse – tools
  • 48.  Best used for data processing scenarios, not as a data store all users can query, because:  Concurrency is very limited (like all MPPs)  Use to load data, process it, and move it to the next step or for individual queries that needs massive amount of processing. Azure SQL Data warehouse – usage
  • 49. Azure SQL Data warehouse – Summary  A relational columnar DWH.  MPP service that allows us to scale compute in separate from storage.  We can pause the compute whenever needed.  Using the infinite power of the cloud, we can process as much data as we want, and use as much power as we want.  We don’t need to buy expensive hardware.
  • 50. Azure SQL Data warehouse – Summary Best for:  Your data is already in Azure.  You need scheduled computing power for data processing.  You have a lot of data, but don’t want to spend a lot of money.  Not for concurrent querying!