Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL Database Federations Tips and Tricks Scott Klein Microsoft Corporation.

Similar presentations


Presentation on theme: "SQL Database Federations Tips and Tricks Scott Klein Microsoft Corporation."— Presentation transcript:

1 SQL Database Federations Tips and Tricks Scott Klein Microsoft Corporation

2

3

4 On Prem Provisioning ModelCloud Provisioning Model

5

6 Single tenant per database Multiple-tenants per databaseMultiple databases per tenant

7 Federations in SQL Azure

8 SalesDB Orders_federation fed_name 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 Range Partitioning

9 SalesDB Orders_federation Orders_Fed [5000, 10000) ALTER FEDERATION Orders_Fed SPLIT AT (tenant_id=7500) [5000, 7500) & [7500, 10000)

10 SalesDB Orders_federation Orders_Fed USE FEDERATION Orders_Fed(tenant_id=7500)

11 SQL Scale-out Tips and Tricks

12 DESIGN AND DEVELOPMENT Tips and Tricks

13 Table Groups Orders_federation fed_name

14 Federation Columns Orders_federation fed_name

15

16

17

18 //MEMBER QUERY //start from the first member – min value USE FED f(id=min) WHILE (nextvalue != NULL) //get results into dataset DataAdapter.Fill(ds); //get the value to navigate to the next member nextvalue = SELECT range_high FROM sys.federation_member_distributions //SUMMARY QUERY LINQ2DataSet(ds)

19 Fan-out Queries Submitting Fan-out Queries with Sample Fan-out Query Utility Demo

20 ADMINISTRATION Tips and Tricks

21

22

23

24

25 SPLIT with GUIDs Walkthrough when and where to split with Uniqueidentifier as the Federation Key Demo

26 Recent Changes Available Today Changes Coming in the Next Quarter

27 Gateway Nodes DB Nodes App Server #Users

28

29 DR simplified with Federations

30 SalesDB Orders_federation Orders_Fed Unavailable Federation Members Federation Root Federations db1

31 SalesDB Orders_federation Orders_Fed Federations DBCopy member2 @ now PITR member2 @ 6/11/2012 12:00:00

32 P’ S’ S’ P S S

33

34

35 SQL Azure Administration Windows Azure Hands-on-Labs Cloud on your terms Demo Station at the Windows Azure Booth Find Me Later At… cihangib@microsoft.com

36

37 Connect. Share. Discuss. http://europe.msteched.com Learning Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn

38 Evaluations http://europe.msteched.com/sessions Submit your evals online

39

40


Download ppt "SQL Database Federations Tips and Tricks Scott Klein Microsoft Corporation."

Similar presentations


Ads by Google