Presentation is loading. Please wait.

Presentation is loading. Please wait.

Materialized View Selection in a Multidimensional Database Elena Baralis Stefano Paraboschi Ernest Teniente.

Similar presentations


Presentation on theme: "Materialized View Selection in a Multidimensional Database Elena Baralis Stefano Paraboschi Ernest Teniente."— Presentation transcript:

1 Materialized View Selection in a Multidimensional Database Elena Baralis Stefano Paraboschi Ernest Teniente

2 A Practical Example Consider the MDDB for a large grocery store chain, characterized by a large number of stores, each of which is a supermarket selling a wide variety of different products. We can identify the following dimensions: Product, which can be characterized by 15 different attributes. Store, which characterizes each point of sale. The store dimension contain 15 attributes. Time, which provides the appropriate detail to allow accurate analysis of the MDDB data. The time dimension have 9 attributes. Promotion, which describes the characteristics of product promotions. The promotion dimension is characterized by 11 attributes.

3 Attribute hierarchy An attribute hierarchy on a dimension table D is a set of functional dependencies FD D ={fd 0,fd 1,…,fd n }, where each fdi is characterized by two sets of attributes A i l

4 Identification of Candidate Views The idea of the reduction technique is to consider only those views of an MD-lattice that, when materialized, can provide some contribution to reduce the total cost. We call them candidate views. View v i is associated to some query q i. There exist two candidate views v j and v k, and v i is the least upper bound (l.u.b) of v j and v k.

5 has an associated query The cost of using a set of views already materialized: The cost of using the materialization of view : When the materialization of will be beneficial.

6 There exist at least two candidate views, vj and vk, such that vi is the l.u.b of vj and vk When vi and vk are materialized and vi is not, the cost C(Q,M,F) is : If vi is materialized while vj and vk are not, with vi being the least expensive materialization for both qj and qk:

7 Data-cube lattice with associated queries psdr psdpsrpdrsdr pspdprsdsrdr psdr none q4q4 q3q3 q2q2 q1q1 q 1 = total sales per product q 2 = total sales per product and store q 3 = total sales per product and day q 4 = total sales per product, store and day

8 Operator ancestor  The result of the ancestor operator to queries q x and q y is the “smallest” query that contains all the information necessary for answering q x as well as q y.

9 Operator descendent   The descendent operator computes the “greatest” among the set of attributes characterizing the queries that can be computed by both q x and q y.

10 A heuristic reduction Example: A dimension A with 1,000 tuples. A view contain an aggregation fro the pair of attributes {A 1, A 2 }, where each attribute has 100 distinct values. There will be 10,000 possible pairs of values of the attributes! Instead of materializing this view, it could be convenient to use the view which has the key of dimension A as aggregating attribute.


Download ppt "Materialized View Selection in a Multidimensional Database Elena Baralis Stefano Paraboschi Ernest Teniente."

Similar presentations


Ads by Google