SlideShare a Scribd company logo
1 of 27
Download to read offline
SQL Server 2014
Inside Out
Regis Gimenis
MCS Architect
Michael Stonebraker (http://slideshot.epfl.ch/play/suri_stonebraker)
Latching
24%
Locking
24%
Recovery
24%
Buffer Pool
24%
Operação
(I,U,D)
4%
CREATE TABLE Customer (
CustomerID INT NOT NULL
PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = 1000000),
Name NVARCHAR(250) NOT NULL
INDEX [Name] HASH WITH (BUCKET_COUNT = 1000000),
CustomerSince DATETIME NULL)
WITH (MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA)
Demo
10
CREATE CLUSTERED COLUMNSTORE INDEX cci
ON FactSales;
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140301 1001 1 1 4 4.004,00
20140301 1020 4 3 3 3.060,00
20140301 1010 4 1 2 2.020,00
20140301 1020 3 2 3 3.060,00
20140301 1005 5 3 1 1.005,00
20140302 1005 2 1 4 4.020,00
20140302 1001 2 2 3 3.003,00
20140302 1020 3 3 4 4.080,00
20140302 1010 1 1 2 2.020,00
20140303 1020 4 3 3 3.060,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140301 1001 1 1 4 4.004,00
20140301 1020 4 3 3 3.060,00
20140301 1010 4 1 2 2.020,00
20140301 1020 3 2 3 3.060,00
20140301 1005 5 3 1 1.005,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140302 1005 2 1 4 4.020,00
20140302 1001 2 2 3 3.003,00
20140302 1020 3 3 4 4.080,00
20140302 1010 1 1 2 2.020,00
20140303 1020 4 3 3 3.060,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140301 1001 1 1 4 4.004,00
20140301 1020 4 3 3 3.060,00
20140301 1010 4 1 2 2.020,00
20140301 1020 3 2 3 3.060,00
20140301 1005 5 3 1 1.005,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140302 1005 2 1 4 4.020,00
20140302 1001 2 2 3 3.003,00
20140302 1020 3 3 4 4.080,00
20140302 1010 1 1 2 2.020,00
20140303 1020 4 3 3 3.060,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140301 1001 1 1 4 4.004,00
20140301 1020 4 3 3 3.060,00
20140301 1010 4 1 2 2.020,00
20140301 1020 3 2 3 3.060,00
20140301 1005 5 3 1 1.005,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140302 1005 2 1 4 4.020,00
20140302 1001 2 2 3 3.003,00
20140302 1020 3 3 4 4.080,00
20140302 1010 1 1 2 2.020,00
20140303 1020 4 3 3 3.060,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140301 1001 1 1 4 4.004,00
20140301 1020 4 3 3 3.060,00
20140301 1010 4 1 2 2.020,00
20140301 1020 3 2 3 3.060,00
20140301 1005 5 3 1 1.005,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140302 1005 2 1 4 4.020,00
20140302 1001 2 2 3 3.003,00
20140302 1020 3 3 4 4.080,00
20140302 1010 1 1 2 2.020,00
20140303 1020 4 3 3 3.060,00
OrderDateKey
20140301
20140301
20140301
20140301
20140301
OrderDateKey
20140302
20140302
20140302
20140302
20140303
ProductKey
1001
1020
1010
1020
1005
ProductKey
1005
1001
1020
1010
1020
StoreKey
1
4
4
3
5
StoreKey
2
2
3
1
4
RegionKey
1
3
1
2
3
RegionKey
1
2
3
1
4
Quantity
4
3
2
3
1
Quantity
4
3
4
2
3
SalesAmount
4.004,00
3.060,00
2.020,00
3.060,00
1.005,00
SalesAmount
4.020,00
3.003,00
4.080,00
2.020,00
3.060,00
SELECT ProductKey, Sum (SalesAmount)
FROM FactSales
WHERE OrderDateKey > 20140301
GROUP BY ProductKey
OrderDateKey
20140301
20140301
20140301
20140301
20140301
OrderDateKey
20140302
20140302
20140302
20140302
20140303
ProductKey
1001
1020
1010
1020
1005
ProductKey
1005
1001
1020
1010
1020
StoreKey
1
4
4
3
5
StoreKey
2
2
3
1
4
RegionKey
1
3
1
2
3
RegionKey
1
2
3
1
4
Quantity
4
3
2
3
1
Quantity
4
3
4
2
3
SalesAmount
4.004,00
3.060,00
2.020,00
3.060,00
1.005,00
SalesAmount
4.020,00
3.003,00
4.080,00
2.020,00
3.060,00
OrderDateKey
20140301
20140301
20140301
20140301
20140301
OrderDateKey
20140302
20140302
20140302
20140302
20140303
ProductKey
1001
1020
1010
1020
1005
ProductKey
1005
1001
1020
1010
1020
StoreKey
1
4
4
3
5
StoreKey
2
2
3
1
4
RegionKey
1
3
1
2
3
RegionKey
1
2
3
1
4
Quantity
4
3
2
3
1
Quantity
4
3
4
2
3
SalesAmount
4.004,00
3.060,00
2.020,00
3.060,00
1.005,00
SalesAmount
4.020,00
3.003,00
4.080,00
2.020,00
3.060,00
OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount
20140304 1001 3 4 3 3.003,00
20140304 1020 5 2 2 4.020,00
20140304 1010 2 2 1 1.010,00
INSERT INTO FactSales
VALUES (20140304, 1010, 2, 2, 1, 1.010,00)
Demo
19
Secundário
Assíncrono
Síncrono
Windows Azure
Virtual Network
Dados e Log
Windows Azure
Virtual Network
Demo
25
Webcast SQL Server 2014 Inside Out
Webcast SQL Server 2014 Inside Out

More Related Content

What's hot (6)

Low Res Final Proof
Low Res Final ProofLow Res Final Proof
Low Res Final Proof
 
Sahara Glass Handles Catalogue
Sahara Glass Handles Catalogue Sahara Glass Handles Catalogue
Sahara Glass Handles Catalogue
 
Glass hardware accessories
Glass hardware accessoriesGlass hardware accessories
Glass hardware accessories
 
Su building blocks toys catalog From TonySourcing.com
Su building blocks toys catalog From TonySourcing.comSu building blocks toys catalog From TonySourcing.com
Su building blocks toys catalog From TonySourcing.com
 
Glass Hardware 2015 Catalogue
Glass Hardware 2015 CatalogueGlass Hardware 2015 Catalogue
Glass Hardware 2015 Catalogue
 
Prez r angl the photo presentation
Prez r angl the photo presentation Prez r angl the photo presentation
Prez r angl the photo presentation
 

Similar to Webcast SQL Server 2014 Inside Out

Mike lawell executionplansformeremortals_2015
Mike lawell executionplansformeremortals_2015Mike lawell executionplansformeremortals_2015
Mike lawell executionplansformeremortals_2015
mlawell
 
Questionnaire mm.doc
Questionnaire mm.docQuestionnaire mm.doc
Questionnaire mm.doc
Arnab Pal
 

Similar to Webcast SQL Server 2014 Inside Out (20)

Execution plans for mere mortals
Execution plans for mere mortalsExecution plans for mere mortals
Execution plans for mere mortals
 
Money Projection PowerPoint Presentation Slides
Money Projection PowerPoint Presentation Slides Money Projection PowerPoint Presentation Slides
Money Projection PowerPoint Presentation Slides
 
IBM Vision 2017 Conference Session #1148 - Leveraging Planning Analytics & CD...
IBM Vision 2017 Conference Session #1148 - Leveraging Planning Analytics & CD...IBM Vision 2017 Conference Session #1148 - Leveraging Planning Analytics & CD...
IBM Vision 2017 Conference Session #1148 - Leveraging Planning Analytics & CD...
 
Monetary Forecast PowerPoint Presentation Slides
Monetary Forecast PowerPoint Presentation Slides Monetary Forecast PowerPoint Presentation Slides
Monetary Forecast PowerPoint Presentation Slides
 
Mike lawell executionplansformeremortals_2015
Mike lawell executionplansformeremortals_2015Mike lawell executionplansformeremortals_2015
Mike lawell executionplansformeremortals_2015
 
Income Forecast PowerPoint Presentation Slides
Income Forecast PowerPoint Presentation SlidesIncome Forecast PowerPoint Presentation Slides
Income Forecast PowerPoint Presentation Slides
 
OpenText Live: Modeling your business processes to new ways of working
OpenText Live: Modeling your business processes to new ways of workingOpenText Live: Modeling your business processes to new ways of working
OpenText Live: Modeling your business processes to new ways of working
 
How to Realize an Additional 270% ROI on Snowflake
How to Realize an Additional 270% ROI on SnowflakeHow to Realize an Additional 270% ROI on Snowflake
How to Realize an Additional 270% ROI on Snowflake
 
Financial Projection PowerPoint Presentation Slides
Financial Projection PowerPoint Presentation Slides Financial Projection PowerPoint Presentation Slides
Financial Projection PowerPoint Presentation Slides
 
Questionnaire mm.doc
Questionnaire mm.docQuestionnaire mm.doc
Questionnaire mm.doc
 
Financial Forecast PowerPoint Presentation Slides
Financial Forecast PowerPoint Presentation Slides Financial Forecast PowerPoint Presentation Slides
Financial Forecast PowerPoint Presentation Slides
 
Value stream mapping (current state)
Value stream mapping (current state)Value stream mapping (current state)
Value stream mapping (current state)
 
icecreamshop-entrepereneur idea - shubham parsekar - sybba - 2013
icecreamshop-entrepereneur idea - shubham parsekar - sybba - 2013icecreamshop-entrepereneur idea - shubham parsekar - sybba - 2013
icecreamshop-entrepereneur idea - shubham parsekar - sybba - 2013
 
Nestle Quick Wins Digital Commerce Conversion Workshop
Nestle Quick Wins Digital Commerce Conversion WorkshopNestle Quick Wins Digital Commerce Conversion Workshop
Nestle Quick Wins Digital Commerce Conversion Workshop
 
Agile Connect Online Meetup 9th - Agile Estimation
Agile Connect Online Meetup 9th - Agile EstimationAgile Connect Online Meetup 9th - Agile Estimation
Agile Connect Online Meetup 9th - Agile Estimation
 
Service Design and the joy of prototyping operating models
Service Design and the joy of prototyping operating modelsService Design and the joy of prototyping operating models
Service Design and the joy of prototyping operating models
 
TeamSixBP
TeamSixBPTeamSixBP
TeamSixBP
 
Business Plan - Term Project
Business Plan - Term ProjectBusiness Plan - Term Project
Business Plan - Term Project
 
Calculating your 2015 marketing budget: How much marketing do you really need?
Calculating your 2015 marketing budget: How much marketing do you really need?Calculating your 2015 marketing budget: How much marketing do you really need?
Calculating your 2015 marketing budget: How much marketing do you really need?
 
Revenue Projection PowerPoint Presentation Slides
Revenue Projection PowerPoint Presentation SlidesRevenue Projection PowerPoint Presentation Slides
Revenue Projection PowerPoint Presentation Slides
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 

Webcast SQL Server 2014 Inside Out

  • 1. SQL Server 2014 Inside Out Regis Gimenis MCS Architect
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 8.
  • 9. CREATE TABLE Customer ( CustomerID INT NOT NULL PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = 1000000), Name NVARCHAR(250) NOT NULL INDEX [Name] HASH WITH (BUCKET_COUNT = 1000000), CustomerSince DATETIME NULL) WITH (MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA)
  • 11.
  • 12.
  • 13. CREATE CLUSTERED COLUMNSTORE INDEX cci ON FactSales;
  • 14. OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140301 1001 1 1 4 4.004,00 20140301 1020 4 3 3 3.060,00 20140301 1010 4 1 2 2.020,00 20140301 1020 3 2 3 3.060,00 20140301 1005 5 3 1 1.005,00 20140302 1005 2 1 4 4.020,00 20140302 1001 2 2 3 3.003,00 20140302 1020 3 3 4 4.080,00 20140302 1010 1 1 2 2.020,00 20140303 1020 4 3 3 3.060,00 OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140301 1001 1 1 4 4.004,00 20140301 1020 4 3 3 3.060,00 20140301 1010 4 1 2 2.020,00 20140301 1020 3 2 3 3.060,00 20140301 1005 5 3 1 1.005,00 OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140302 1005 2 1 4 4.020,00 20140302 1001 2 2 3 3.003,00 20140302 1020 3 3 4 4.080,00 20140302 1010 1 1 2 2.020,00 20140303 1020 4 3 3 3.060,00
  • 15. OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140301 1001 1 1 4 4.004,00 20140301 1020 4 3 3 3.060,00 20140301 1010 4 1 2 2.020,00 20140301 1020 3 2 3 3.060,00 20140301 1005 5 3 1 1.005,00 OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140302 1005 2 1 4 4.020,00 20140302 1001 2 2 3 3.003,00 20140302 1020 3 3 4 4.080,00 20140302 1010 1 1 2 2.020,00 20140303 1020 4 3 3 3.060,00 OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140301 1001 1 1 4 4.004,00 20140301 1020 4 3 3 3.060,00 20140301 1010 4 1 2 2.020,00 20140301 1020 3 2 3 3.060,00 20140301 1005 5 3 1 1.005,00 OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140302 1005 2 1 4 4.020,00 20140302 1001 2 2 3 3.003,00 20140302 1020 3 3 4 4.080,00 20140302 1010 1 1 2 2.020,00 20140303 1020 4 3 3 3.060,00
  • 16. OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140301 1001 1 1 4 4.004,00 20140301 1020 4 3 3 3.060,00 20140301 1010 4 1 2 2.020,00 20140301 1020 3 2 3 3.060,00 20140301 1005 5 3 1 1.005,00 OrderDateKey ProductKey StoreKey RegionKey Quantity SalesAmount 20140302 1005 2 1 4 4.020,00 20140302 1001 2 2 3 3.003,00 20140302 1020 3 3 4 4.080,00 20140302 1010 1 1 2 2.020,00 20140303 1020 4 3 3 3.060,00 OrderDateKey 20140301 20140301 20140301 20140301 20140301 OrderDateKey 20140302 20140302 20140302 20140302 20140303 ProductKey 1001 1020 1010 1020 1005 ProductKey 1005 1001 1020 1010 1020 StoreKey 1 4 4 3 5 StoreKey 2 2 3 1 4 RegionKey 1 3 1 2 3 RegionKey 1 2 3 1 4 Quantity 4 3 2 3 1 Quantity 4 3 4 2 3 SalesAmount 4.004,00 3.060,00 2.020,00 3.060,00 1.005,00 SalesAmount 4.020,00 3.003,00 4.080,00 2.020,00 3.060,00
  • 17. SELECT ProductKey, Sum (SalesAmount) FROM FactSales WHERE OrderDateKey > 20140301 GROUP BY ProductKey OrderDateKey 20140301 20140301 20140301 20140301 20140301 OrderDateKey 20140302 20140302 20140302 20140302 20140303 ProductKey 1001 1020 1010 1020 1005 ProductKey 1005 1001 1020 1010 1020 StoreKey 1 4 4 3 5 StoreKey 2 2 3 1 4 RegionKey 1 3 1 2 3 RegionKey 1 2 3 1 4 Quantity 4 3 2 3 1 Quantity 4 3 4 2 3 SalesAmount 4.004,00 3.060,00 2.020,00 3.060,00 1.005,00 SalesAmount 4.020,00 3.003,00 4.080,00 2.020,00 3.060,00
  • 20.
  • 21.
  • 22.
  • 24. Dados e Log Windows Azure Virtual Network