Applying OLAP Pre-Aggregation Techniques to ... - Jacobs University
Applying OLAP Pre-Aggregation Techniques to ... - Jacobs University
Applying OLAP Pre-Aggregation Techniques to ... - Jacobs University
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.2 Cost Model 69<br />
Cost of independent pre-aggregates<br />
The cost of retrieving the results of independent pre-aggregates (C IP AS ) is given by:<br />
C IP AS (Q, T ) = C fin (Q, T ) +<br />
∑<br />
|IP AS|<br />
i=0<br />
C acc (p i ) (4.8)<br />
where C fin is the cost of finding the pre-aggregates ∈ IP AS in the pre-aggregated<br />
pool T , and C acc is the accumulated cost of retrieving the results of the pre-aggregates.<br />
Cost of overlapped pre-aggregates<br />
The cost of retrieving the results of overlapped pre-aggregates (C OP AS ) is given by:<br />
C OP AS (Q) = C fin (Q, T ) +<br />
∑<br />
|OP AS|<br />
i=0<br />
|S|<br />
∑<br />
C dec (p i ) + C r (s i ) (4.9)<br />
where C fin is the cost of finding the pre-aggregates ∈ OP AS in the pre-aggregated<br />
pool T , C dec is the cost of decomposing the spatial domain of each pre-aggregate in<strong>to</strong><br />
a set of sub-partitions S such that the spatial domain of the partitioned pre-aggregate<br />
corresponds <strong>to</strong> p i.sdom − (p i.sdom ∩ Q), and C r is the cost of aggregating each resulting<br />
sub-partition s i ∈ S from raw data.<br />
Cost of aggregating sub-partitions of a query<br />
The cost of aggregating all sub-partitions forming a query is given by:<br />
|SP |<br />
∑<br />
C SP (Q) = C dec (Q) + C r (s i ), (4.10)<br />
where C dec is the cost of decomposing Q in<strong>to</strong> a set SP of sub-partitions, and C r is<br />
the cost of aggregating each resulting sub-partition s ∈ SP from raw data. Note that<br />
C dec is influenced by the costs of accessing the tiles required <strong>to</strong> aggregate each subpartition,<br />
and the cost of accessing the spatial properties of the pre-aggregates in IPAS<br />
and OPAS.<br />
4.2.3 Computing Queries from Dominant <strong>Pre</strong>-Aggregates<br />
The cost of computing an aggregate query Q using a dominant pre-aggregate is<br />
given by:<br />
C DP AS (Q) = C DP (Q, T ) + C agg (p cd ), (4.11)<br />
where C DP is the sum of the cost of finding the pre-aggregates ∈ DPAS in the preaggregated<br />
pool T and the cost of finding the closest dominant pre-aggregate p cd ,<br />
and C agg is the cost of computing the aggregate difference of p cd corresponding <strong>to</strong><br />
p cd.sdom − Q .sdom .<br />
i=0<br />
i=0