Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Size

Total no of stores 1000


Products 10000 (5000 active products)
No of period 24 (2 years monthly)

Total rows 1000x5000active products x 24 months


120,000,000

120,000,000 x 6 fields x 4 bytes


size= 2.88 GB

Aggregation

Stores=300
Products per brand = 500
Products= 40,000

Assumption
At least one sale per product per store per week

1 product, 1 store, 1 week = 1 fact table row


1 product, all stores, 1 week = 300 fact table rows
1 brand, 1 store, 1 week= 500 fact table rows
1 brand, all stores, 1 year= 7800000

Sparsity

Assumption

4000 products sale per day

Product= 40,000
Store= 300
Time= 1825 (5 years daily data)

Max no. of base table rows= 22 billion

But only 4000 products are active!!!!!

90% sparsity!!!!
1- way aggregation

By brands

products per brands= 500


products=40000
brands=4000/500 = 80

brands= 80
stores= 300
time= 1825

max no. of aggregate table rows= 80x300x1825


=43,800,000

about 50 % sparsity!!!!!!

You might also like