Extending Practical Pre-Aggregation in On-Line Analytical Processing

Torben Bach Pedersen, Christian S. Jensen, Curtis E. Dyreson

Introduction

In the domain of On-Line Analytical Processing (OLAP), the ability to provide near-instantaneous responses to complex analytical queries is paramount. A standard technique to achieve this performance is pre-aggregation, where systems pre-calculate and store results at various levels of a data hierarchy. However, the effectiveness of pre-aggregation is fundamentally limited by the "summarizability" of the underlying data. This paper, originally presented at the 1999 VLDB Conference, addresses the challenge of applying pre-aggregation to irregular, real-world data hierarchies that do not naturally adhere to strict organizational rules.

The Challenge of Irregular Hierarchies

For pre-aggregation to function correctly without introducing errors like double-counting or data omission, a hierarchy must be summarizable. This requires three conditions:

  1. Covering: The hierarchy must not skip levels (e.g., every address must map to a city, which then maps to a county).
  2. Onto: Every parent level must have at least one child level associated with it.
  3. Strict: Each child element must have exactly one parent (no many-to-many relationships).

Real-world datasets, particularly in fields like medicine or geography, frequently violate these conditions. For instance, a patient may have multiple diagnoses, or a rural residence might belong to a county without being part of any specific city.

Figure 1: ER diagram of the clinical case study, highlighting irregular relationships such as many-to-many diagnoses and rural addresses skipping the city level.

Normalizing Irregular Hierarchies

The authors propose a suite of three algorithms designed to transform irregular hierarchies into "well-behaved," summarizable structures:

  • MakeCovering: This algorithm identifies instances where a hierarchy skips a level. It resolves this by inserting "placeholder" values. For example, if an address links directly to a county, a virtual "placeholder city" is created to maintain the chain, ensuring that aggregations can flow through every level of the hierarchy.
  • MakeOnto: To ensure every parent has a child, this algorithm inserts placeholder values at lower levels. This ensures that every aggregate can be rolled up from the base level of the data tree.
  • MakeStrict: Addressing many-to-many relationships is the most complex task. To prevent double-counting (e.g., counting a single patient's cost toward two different diagnosis categories), the algorithm "fuses" parent values into new, unique combination categories. This creates a strict one-to-one mapping for the purposes of aggregation.

System Architecture

A key contribution of the paper is a dual-server architecture that maintains transparency for the end-user. A "Query Handler" acts as an intermediary. When a user performs "navigational" queries (browsing raw data), the system directs them to a server containing the original, irregular data. When "aggregational" queries (calculating sums or counts) are issued, the handler routes them to a server containing the transformed, optimized data. This ensures that users interact with intuitive data while the system performs high-speed math "under the hood."

Case Study and Evaluation

The approach was evaluated using a clinical case study involving hospital patient records. The dataset featured complex hierarchies, including the ICD-10 diagnosis standards (which are non-strict) and geographical residence data (which are non-covering due to rural addresses).

The authors demonstrated that their algorithms possess low computational complexity ($O(n \log n)$), making them suitable for large-scale enterprise databases. Furthermore, by enabling partial pre-aggregation on these complex sets, the method avoids the "data explosion" typically associated with full pre-aggregation, where storage requirements can exceed raw data size by 200 times.

Conclusion

By providing a formal framework and practical algorithms for normalizing irregular hierarchies, this work enables the use of efficient OLAP techniques on datasets that were previously considered too messy to optimize. The proposed dual-server architecture ensures that these optimizations remain transparent, providing both the accuracy required for clinical research and the speed required for modern business intelligence.

Summary updated

BibTeX
@inproceedings{pedersen1999extending,
  author = {Torben Bach Pedersen and Christian S. Jensen and Curtis E. Dyreson},
  title = {{Extending Practical Pre-Aggregation in On-Line Analytical Processing}},
  booktitle = {VLDB},
  year = {1999},
}
Figure