Webcast SQL Server 2014 Inside Out
-
Upload
regis-gimenis -
Category
Technology
-
view
406 -
download
3
description
Transcript of Webcast SQL Server 2014 Inside Out
![Page 1: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/1.jpg)
SQL Server 2014Inside Out
Regis GimenisMCS Architect
![Page 2: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/2.jpg)
![Page 3: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/3.jpg)
![Page 4: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/4.jpg)
![Page 5: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/5.jpg)
![Page 6: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/6.jpg)
![Page 7: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/7.jpg)
Michael Stonebraker (http://slideshot.epfl.ch/play/suri_stonebraker)
Latching24%
Locking24%
Recovery24%
Buffer Pool24%
Operação (I,U,D)
4%
![Page 8: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/8.jpg)
![Page 9: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/9.jpg)
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)
![Page 10: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/10.jpg)
Demo
10
![Page 11: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/11.jpg)
![Page 12: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/12.jpg)
![Page 13: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/13.jpg)
CREATE CLUSTERED COLUMNSTORE INDEX cci
ON FactSales;
![Page 14: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/14.jpg)
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
![Page 15: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/15.jpg)
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
![Page 16: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/16.jpg)
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
![Page 17: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/17.jpg)
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
![Page 18: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/18.jpg)
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)
![Page 19: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/19.jpg)
Demo
19
![Page 20: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/20.jpg)
![Page 21: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/21.jpg)
![Page 22: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/22.jpg)
![Page 23: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/23.jpg)
Secundário
Assíncrono
Síncrono
Windows Azure Virtual Network
![Page 24: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/24.jpg)
Dados e Log
Windows Azure Virtual Network
![Page 25: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/25.jpg)
Demo
25
![Page 26: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/26.jpg)
![Page 27: Webcast SQL Server 2014 Inside Out](https://reader033.fdocuments.us/reader033/viewer/2022052901/556a459dd8b42a4a1e8b4d77/html5/thumbnails/27.jpg)