Presentation is loading. Please wait.

Presentation is loading. Please wait.

DBI403 Few Nodes Many Nodes SalesDB CustomerFederationeration CustomerFederation Federation Members Federation Root Federations.

Similar presentations


Presentation on theme: "DBI403 Few Nodes Many Nodes SalesDB CustomerFederationeration CustomerFederation Federation Members Federation Root Federations."— Presentation transcript:

1

2 DBI403

3

4

5 Few Nodes Many Nodes

6

7

8

9 SalesDB CustomerFederationeration CustomerFederation Federation Members Federation Root Federations

10 SalesDB CustomerFederationeration CustomerFederation Federation Members Federation Root Federations member: Range [1000, 2000) AU PK=5 AU PK=25 AU PK=35 AU PK=5 AU PK=25 AU PK=35 AU PK=1005 AU PK=1025 AU PK=1035 Atomic Units

11 SalesDB CustomerFederationeration CustomerFederation Federation members User Database and Federation root Federations Federated Tables and Reference Tables Global Tables

12 SalesDB Orders_federation CustomerFederationeration CustomerFederation Range Distribution [min,1000, 2000, 3000 ….. 5000, 10000, Max] ALTER FEDERATION CustomerFederation SPLIT AT (tenant_id=7500)

13 SalesDB CustomerFederationeration CustomerFederation Range Distribution [min,1000, 2000, 3000 ….. 5000, 10000, Max] -- Connect to Root Database USE FEDERATION CustomerFederation(customer_id = 5075) …

14 deep dive

15

16 Sample Scenario – Multi-Tenant App -- Day#1 – Deploy CREATE DATABASE SalesDB GO CREATE FEDERATION CustomerFederation(cid BIGINT RANGE) GO CREATE FEDERATION ProductFederation(pid VARBINARY(64) RANGE) GO SalesDB member: Range [MIN, NULL) ProductFederation CustomerFederation

17 Sample Scenario – Multi Tenant App -- Connect to the federation member USE FEDERATION CustomerFederationeration(cid = 0) WITH FILTERING=OFF, RESET GO CREATE TABLE [dbo].[Customer]( [CustomerID] [bigint] NOT NULL, [Title] [nvarchar](8) NULL, … CONSTRAINT [PK_Customer] PRIMARY KEY CLUSTERED ([CustomerID] ASC) ) FEDERATED ON (cid = CustomerID) GO CREATE TABLE [dbo].[CustomerAddress]( [AddressID] [int] NOT NULL, [CustomerID] [bigint] NOT NULL, … CONSTRAINT [PK_CustomerAddress] PRIMARY KEY CLUSTERED ([CustomerID],[AddressID] ASC) ) FEDERATED ON (cid = CustomerID) GO CREATE TABLE [dbo].[PostalCode]( [PostalCodeID] [int] NOT NULL, [PostalCode] [nvarchar](15) NOT NULL, … CONSTRAINT [PK_PostalCode] PRIMARY KEY CLUSTERED ([PostalCodeID] ASC) ) GO SalesDB member: Range [MIN, NULL) CustomerFederation Customer (federated) CustomerAddress (federated) PostalCode (reference)

18 Sample Scenario – Multi Tenant App -- Day#2 business grows! ALTER FEDERATION CustomerFederation SPLIT AT(cid = 1000) GO -- Day#3 black friday! (future) ALTER FEDERATION CustomerFederation SPLIT AT(cid = 100,200,300,…900) GO -- Day#4 recession hits! (future) ALTER FEDERATION CustomerFederation MERGE AT(cid = 100,200,300,…900) GO -- Day#5 oh shoot! it is a double dip. (future) ALTER FEDERATION CustomerFederation MERGE AT(cid = 1000) GO SalesDB CustomerFederationeration CustomerFederation

19 SPLIT in Action App member: Range [100,200) Customer (federated) CustomerAddress (federated) PostalCode (reference) Member: Range [100,150)Member: Range [150,200)

20 demo

21 Connecting to Federations Filtering Connections Microsoft Confidential SalesDB member: Range [100,200) orders (federated) CustomerFederation orderdetails (federated) Uszipcodes (referece) CustomerFederation Customer_id=55

22 Connecting to Federations Member Connections Microsoft Confidential SalesDB member: Range [100,200) orders (federated) CustomerFederation orderdetails (federated) Uszipcodes (referece) CustomerFederation Customer_id=55

23

24

25

26

27

28 Try the new SQL Server Mission Critical BareMetal Hands on-Labs Visit the updated website for SQL Server® Code Name Denali on www.microsoft.com/sqlserver and sign to be notified when the next CTP is available www.microsoft.com/sqlserver Follow the @SQLServer Twitter account to watch for updates Visit the SQL Server Product Demo Stations in the DBI Track section of the Expo/TLC Hall. Bring your questions, ideas and conversations! Microsoft® SQL Server® Security & ManagementMicrosoft® SQL Server® Optimization and Scalability Microsoft® SQL Server® ProgrammabilityMicrosoft® SQL Server® Data Warehousing Microsoft® SQL Server® Mission Critical Microsoft® SQL Server® Data Integration

29 Resources www.microsoft.com/teched Sessions On-Demand & CommunityMicrosoft Certification & Training Resources Resources for IT ProfessionalsResources for Developers www.microsoft.com/learning http://microsoft.com/technet http://microsoft.com/msdn http://northamerica.msteched.com Connect. Share. Discuss.

30

31 Scan the Tag to evaluate this session now on myTechEd Mobile

32


Download ppt "DBI403 Few Nodes Many Nodes SalesDB CustomerFederationeration CustomerFederation Federation Members Federation Root Federations."

Similar presentations


Ads by Google