15
p. 1 1 Chapter 2 - Video # 5 OLTP vs. OLAP 1 Chapter 2: Business Intelligence & Data Warehousing with SSAS Course: SQL Server 2008/R2 Analysis Services Course Id: 165 Presented by Scott Whigham

OLTP

Embed Size (px)

DESCRIPTION

chapter02_05_oltp

Citation preview

Page 1: OLTP

p. 1

1

Chapter 2 - Video # 5

OLTP vs. OLAP

1

Chapter 2: Business Intelligence & Data Warehousing with SSASCourse: SQL Server 2008/R2 Analysis ServicesCourse Id: 165Presented by Scott Whigham

Page 2: OLTP

p. 2

2

• Overview of Chapter

• Defining Business Intelligence

• BI and SQL Server

• OLTP vs. OLAP

• “Where should I put my data warehouse?”

• Multi-dimensional databases

• Data Mining

• What is Analysis Services?

• New Features in SSAS 2008

Business Intelligence

Page 3: OLTP

p. 3

3

• File this video under “Things all people who work with databases should know”– That would be you

OLTP vs. OLAP

Page 4: OLTP

p. 4

4

• Modern databases fall into one of two categories:– Online Transaction Processing (“OLTP”)

– Online Analytical Processing (“OLAP”)

• Let’s look at each!

OLTP vs. OLAP

Page 5: OLTP

p. 5

5

• OLTP databases:– It’s in the name: they are designed to handle

transaction processing

• Great for data entry applications such as ticketing systems, shopping carts, et al

– Optimized design for write activity

• Little to no duplication of data speeds up inserts/updates

OLTP vs. OLAP

Page 6: OLTP

p. 6

6

• OLTP databases (cont.):– Let’s say we work for AdventureWorks Cycling

Company and we just signed a new distribution deal with ACME Widgets, Ltd. We need to now add 50,000 products to our database

• All products have same seller, same contact information

OLTP vs. OLAP

Page 7: OLTP

p. 7

7

• OLTP databases (cont.):– Sample data as represented in a spreadsheet:

OLTP vs. OLAP

Page 8: OLTP

p. 8

8

OLTPdatabases (cont.):• Sample data in a

“normalized” OLTP database:

OLTP vs. OLAP

Page 9: OLTP

p. 9

9

• OLTP databases (cont.):– While we have optimized for insert/update, our

reads (i.e. “queries”) have become very complex

• To retrieve the same information in the spreadsheet now requires an eight-table JOIN

• This was a simple spreadsheet; a more complex spreadsheet could easily require 30+ tables to be JOINed

OLTP vs. OLAP

Page 10: OLTP

p. 10

10

Data Warehouse

Data entry Data warehouse Reporting Training

Page 11: OLTP

p. 11

11

• OLAP databases:– Are designed to handle analytics

• Great for data warehousing needs such as reporting

– Optimized design for read activity

• Lots of duplication of data speeds up reads

OLTP vs. OLAP

Page 12: OLTP

p. 12

12

• OLAP databases (cont.):– Sample set of table-based representation of data

OLTP vs. OLAP

Page 13: OLTP

p. 13

13

• OLAP databases (cont.):– Now that we have optimized for reads/queries,

our query is a single table

• No more JOINs?

• Are there any downsides/considerations for this approach?

OLTP vs. OLAP

Page 14: OLTP

p. 14

14

Where, oh where…

Data entry Data warehouse Reporting Training

Page 15: OLTP

p. 15

15

• Where Should I Put My Data Warehouse?

“Dreaming about being an actress, is more exciting then being one.”

Marilyn Monroe

Next up