webcast sql server 2014 inside out

27
SQL Server 2014 Inside Out Regis Gimenis MCS Architect

Upload: regis-gimenis

Post on 31-May-2015

406 views

Category:

Technology


3 download

DESCRIPTION

Material da apresentação online SQL Server 2014 Inside Out para Microsoft Partner Network em

TRANSCRIPT

Page 1: Webcast SQL Server 2014 Inside Out

SQL Server 2014Inside Out

Regis GimenisMCS Architect

Page 2: Webcast SQL Server 2014 Inside Out
Page 3: Webcast SQL Server 2014 Inside Out
Page 4: Webcast SQL Server 2014 Inside Out
Page 5: Webcast SQL Server 2014 Inside Out
Page 6: Webcast SQL Server 2014 Inside Out
Page 7: Webcast SQL Server 2014 Inside Out

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
Page 9: Webcast SQL Server 2014 Inside Out

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

Demo

10

Page 11: Webcast SQL Server 2014 Inside Out
Page 12: Webcast SQL Server 2014 Inside Out
Page 13: Webcast SQL Server 2014 Inside Out

CREATE CLUSTERED COLUMNSTORE INDEX cci

ON FactSales;

Page 14: Webcast SQL Server 2014 Inside Out

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

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

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

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

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

Demo

19

Page 20: Webcast SQL Server 2014 Inside Out
Page 21: Webcast SQL Server 2014 Inside Out
Page 22: Webcast SQL Server 2014 Inside Out
Page 23: Webcast SQL Server 2014 Inside Out

Secundário

Assíncrono

Síncrono

Windows Azure Virtual Network

Page 24: Webcast SQL Server 2014 Inside Out

Dados e Log

Windows Azure Virtual Network

Page 25: Webcast SQL Server 2014 Inside Out

Demo

25

Page 26: Webcast SQL Server 2014 Inside Out
Page 27: Webcast SQL Server 2014 Inside Out