dw architecture€¦ · about me senior bi consultant at insight mcitp – bi developer 2008 blog...

27
DW Architecture More than just Facts & Dimensions Martin Schoombee

Upload: others

Post on 02-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

DW Architecture

More than just Facts & Dimensions

Martin Schoombee

Page 2: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

About Me (NOT)

I have NOT presented at a SQL Saturday

I have NOT published any books

I have DO NOT have a Ferrari

I DO NOT have a Boston accent

4/29/2012 | DW Architecture: More than just Facts & Dimensions 2 |

Page 3: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

About Me

Senior BI Consultant at Insight

MCITP – BI Developer 2008

Blog – www.did-i-say-that.com

Twitter – @sqlmartin

SpeakerRate – Martin Schoombee

4/29/2012 | DW Architecture: More than just Facts & Dimensions 3 |

Page 4: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

The Facts of Life

4/29/2012 | DW Architecture: More than just Facts & Dimensions 4 |

Page 5: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

The Facts of BI

Requirements will be vague (at best)

Change is inevitable

Growth will be exponential

4/29/2012 | 5 | DW Architecture: More than just Facts & Dimensions

Page 6: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

The Key to Success

Do the things that nobody has asked you to

do…

4/29/2012 | DW Architecture: More than just Facts & Dimensions 6 |

Page 7: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Agenda

4/29/2012 | DW Architecture: More than just Facts & Dimensions 7 |

Approach

ETL

Database

Config

Page 8: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

SQL Server Configuration

4/29/2012 | DW Architecture: More than just Facts & Dimensions 8 |

Approach

ETL

Database

Config

Page 9: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

SQL Server Configuration

File Autogrowth Settings

MB, NOT %

Fail-safe Only

Log Files

Separate Drives

RAID 1+0 Ideal

4/29/2012 | DW Architecture: More than just Facts & Dimensions 9 |

Page 10: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

SQL Server Configuration

Tempdb

¼ to ½ of Processor Cores (Paul Randal)

Autogrowth: MB, NOT %

MAXDOP

Less than 8

Never More than Physical Processors

Monitor CX-Packet Wait-Types

Test with Typical Workload

4/29/2012 | DW Architecture: More than just Facts & Dimensions 10 |

Page 11: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Database Areas

4/29/2012 | DW Architecture: More than just Facts & Dimensions 11 |

Approach

ETL

Database

Config

Page 12: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Database Areas

Admin

Staging

Reference

Data Mart

4/29/2012 | DW Architecture: More than just Facts & Dimensions 12 |

Page 13: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Admin Area

Separate Database? Yes

Why?

Flexibility; Backup Strategy; Recovery

Contents

Metadata

Logs

ETL Parameters

4/29/2012 | DW Architecture: More than just Facts & Dimensions 13 |

Page 14: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Staging Area

Separate Database? Yes

Why?

Flexibility

No Data Backups Required

4/29/2012 | DW Architecture: More than just Facts & Dimensions 14 |

Page 15: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Reference Area

“Sandbox” Area for Advanced Users

Separate Database? Yes

Why?

Flexibility; Backup Strategy; Recovery

Contents:

Maintained Tables

Generic Lookup Table

Tally Table

4/29/2012 | DW Architecture: More than just Facts & Dimensions 15 |

Page 16: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Data Mart Area

Separate Database? Yes

Contents

Facts

Dimensions

Snapshots

Helper/Bridge Tables

Use Schema’s for Logical Separation

4/29/2012 | DW Architecture: More than just Facts & Dimensions 16 |

Page 17: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

ETL Process

4/29/2012 | DW Architecture: More than just Facts & Dimensions 17 |

Approach

ETL

Database

Config

Page 18: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

ETL Process

“Engine Room” of Data Warehouse

Spend 80% of Your Time on ETL

Extract Data Quickly

Parameter-Driven

Sliding Window Approach

Automate Fully

4/29/2012 | DW Architecture: More than just Facts & Dimensions 18 |

Page 19: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

ETL Process: SSIS

Choose Configuration/Logging Options Early

Create Templates

Use Queries Against Data Sources

Oracle/Teradata: Attunity Connectors

SCD Component: DO NOT USE IT

Experiment with Buffer Sizes

Parallel Processing

4/29/2012 | DW Architecture: More than just Facts & Dimensions 19 |

Page 20: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

ETL Process: Staging Tables

Utilize Schema’s

Drop & Recreate Indexes

Mirror Source System Names

Map Source Objects 1:1

Varchar for All Source Fields

The Use of Identity Fields

Persist Lookup Values

Experiment with Computed Columns

4/29/2012 | DW Architecture: More than just Facts & Dimensions 20 |

Page 21: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

ETL Process: Considerations

Stored Procs vs. SSIS Components

Consistency

Naming Conventions

Framework

Operational Data Store (ODS)

4/29/2012 | DW Architecture: More than just Facts & Dimensions 21 |

Page 22: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Approach

4/29/2012 | DW Architecture: More than just Facts & Dimensions 22 |

Approach

ETL

Database

Config

Page 23: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Data Mart Objects

Date Dimension

Surrogate Key: <yyyymmdd>

Comprehensive

Dimensions

Numeric vs. Varchar for Codes etc.

Type 1,2 for the Same Subject

Facts

Measures: Compatible Data Types

4/29/2012 | DW Architecture: More than just Facts & Dimensions 23 |

Page 24: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Reporting Layer

Cubes

Qualify Necessity

Calculated Measures

Reporting Services

Create Templates

Admin Reports

Use Stored Procedures

Excel

4/29/2012 | DW Architecture: More than just Facts & Dimensions 24 |

Page 25: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Measure of Success

Automation

Manual Interventions

Failures

Performance

Reports/Output

Data Manipulation

Intuitive Interface

End-User Adoption

4/29/2012 | DW Architecture: More than just Facts & Dimensions 25 |

Page 26: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

The Key to Success

Do the things that nobody has asked you to

do…

Anticipate, Prepare, Deliver, Repeat

4/29/2012 | DW Architecture: More than just Facts & Dimensions 26 |

Page 27: DW Architecture€¦ · About Me Senior BI Consultant at Insight MCITP – BI Developer 2008 Blog – Twitter – @sqlmartin SpeakerRate – Martin Schoombee 3 | 4/29/2012 | DW Architecture:

Martin Schoombee

Senior BI Consultant at Insight

MCITP – BI Developer 2008

Blog – www.did-i-say-that.com

Twitter – @sqlmartin

SpeakerRate – Martin Schoombee

4/29/2012 | DW Architecture: More than just Facts & Dimensions 27 |