Upload
anilkumar-allu
View
216
Download
0
Embed Size (px)
DESCRIPTION
chapter02_05_oltp
Citation preview
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
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
p. 3
3
• File this video under “Things all people who work with databases should know”– That would be you
OLTP vs. OLAP
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
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
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
p. 7
7
• OLTP databases (cont.):– Sample data as represented in a spreadsheet:
OLTP vs. OLAP
p. 8
8
OLTPdatabases (cont.):• Sample data in a
“normalized” OLTP database:
OLTP vs. OLAP
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
p. 10
10
Data Warehouse
Data entry Data warehouse Reporting Training
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
p. 12
12
• OLAP databases (cont.):– Sample set of table-based representation of data
OLTP vs. OLAP
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
p. 14
14
Where, oh where…
Data entry Data warehouse Reporting Training
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