Docsity

Data Warehousing: Understanding the Concepts and Architecture, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Data Warehousing: Understanding the Concepts and Architecture and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Data Warehousing

Notes 13

2

Warehousing

 Growing industry: $8 billion way back in

 Range from desktop to huge:

Walmart: 900-CPU, 2,700 disk, 23TB

Teradata system

 Lots of buzzwords, hype

slice & dice, rollup, MOLAP, pivot, ...

4

What is a Warehouse?

 Collection of diverse data

subject oriented

aimed at executive, decision maker

often a copy of operational data

with value-added data (e.g., summaries, history)

integrated

time-varying

non-volatile

more

5

What is a Warehouse?

 Collection of tools

gathering data

cleansing, integrating, ...

querying, reporting, analysis

data mining

monitoring, administering warehouse

7

Motivating Examples

 Forecasting

 Comparing performance of units

 Monitoring, detecting fraud

 Visualization

8

Why a Warehouse?

 Two Approaches:

Query-Driven (Lazy)

Warehouse (Eager)

Source Source

10

Advantages of Warehousing

 High query performance

 Queries not visible outside warehouse

 Local processing at sources unaffected

 Can operate when sources unavailable

 Can query data not stored in a DBMS

 Extra information at warehouse

Modify, summarize (store aggregates)

Add historical information

11

Advantages of Query-Driven

 No need to copy data

less storage

no need to purchase data

 More up-to-date data

 Query needs can be unknown

 Only query interface needed at sources

 May be less draining on sources

13

OLTP vs. OLAP

 Mostly updates

 Many small transactions

 Mb-Gb of data

 Raw data

 Clerical users

 Up-to-date data

 Consistency,

recoverability critical

 Mostly reads

 Queries long, complex

 Gb-Tb of data

 Summarized,

consolidated data

 Decision-makers,

analysts as users

OLTP OLAP

14

Data Marts

 Smaller warehouses

 Spans part of organization

e.g., marketing (customers, products, sales)

 Do not require enterprise-wide consensus

but long term integration problems?

16

Star

customer custId name address city 53 joe 10 main sfo 81 fred 12 main sfo 111 sally 80 willow la

product prodId name price

p1 bolt 10 p2 nut 5

store storeId city
c1 nyc
c2 sfo
c3 la

sale oderId date custId prodId storeId qty amt o100 1/7/97 53 p1 c1 1 12 o102 2/7/97 53 p2 c1 2 11 105 3/8/97 111 p1 c3 5 50

17

Star Schema

sale
orderId
date
custId
prodId
storeId
qty
amt
customer
custId
name
address
city
product
prodId
name
price
store
storeId
city

19

Dimension Hierarchies

store storeId cityId tId mgr s5 sfo t1 joe s7 sfo t2 fred s9 la t1 nancy

city cityId pop regId sfo 1M north la 5M south

region regId name north cold region south warm region

sType tId size location t1 small downtown t2 large suburbs

store

sType

city region

 snowflake schema

 constellations

20

Cube

sale prodId storeId amt p1 c1 12 p2 c1 11 p1 c3 50 p2 c2 8

c1 c2 c p1 12 50 p2 11 8

Fact table view:

Multi-dimensional cube:

dimensions = 2