Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Objectives
After completing this lesson, you should be able to:
Identify reasons for segmenting data
Describe techniques to model partitions
Implement a value-based partition
Implement a fact-based partition
10 - 2
Business Challenge
Data is often partitioned into multiple physical sources for a
single logical table.
Organizations need to seamlessly and efficiently access and
process data from multiple sources to satisfy user requests.
Business applications must know where to go for what type
of data and under what conditions.
10 - 3
10 - 4
Partition
Is a database element that contains part of the data for a fact
or a dimension
Combines with other data fragments as necessary
May be:
10 - 5
Fact-based
Value-based
Level-based
Complex
Partitioning by Fact
Data is partitioned by fact when different fact data is stored
in different tables.
Example: Actual sales versus quota targets
Actual sales
10 - 6
Quota targets
Sales
Rep
Product
Sale
Sales
Rep
Product
Quota
1100
1000
1100
2000
Partitioning by Value
Data is partitioned by value when the data is split into
separate tables according to the values of the data.
Example: Invoice data is stored separately for each region.
Invoices for
Central
Region
Invoices for
West
Region
10 - 7
InvNbr
Dollars
Region
1135293
1000
Central
InvNbr
Dollars
Region
114444
200
West
Partitioning by Level
Data is partitioned by level when the same facts are stored
in separate tables at different levels of aggregation.
Example: Detailed sales data is summarized and stored by
year and region.
10 - 8
Sales Rep
Date
Product
Sale
Year
Total
Dollars
1100
19980105
10000
1998
200000 Central
1100
19981001
25000
1999
300000 Central
1100
19981010
10000
Region
Complex Partitioning
Data is partitioned using more than one technique.
Example: Invoice sales data is partitioned by value and level.
Invoices by month for Central
Month
Total
Dollars
Region
Year
Total
Dollars
199801
10000
Central
1998
200000 Central
199802
25000
Central
10 - 9
Region
Month
Total
Dollars
Region
Year
Total
Dollars
Region
199801
300000
West
1998
3000000
West
199802
350000
West
Customers
with names
starting with
letters AM
Customers
with names
starting with
letters NZ
10 - 10
NewKey
Name
1000
Clifton Lunch
NewKey
Name
1002
Tongs Wok
Actual sales
10 - 11
Quota targets
Sales
Rep
Product
Sale
Sales
Rep
Product
Quota
1100
1000
1100
2000
Eight quarters of
inventory data
stored in eight
separate tables
10 - 12
Implementation Steps
10 - 13
10 - 14
Summary
In this lesson, you should have learned how to:
Identify reasons for segmenting data
Describe techniques to model partitions
Implement a value-based partition
Implement a fact-based partition
10 - 15
10 - 16
10 - 17
10 - 18
10 - 19