Abstract
The TreeScape system addresses a critical bottleneck in On-Line Analytical Processing (OLAP): the efficient reuse of pre-computed aggregates within irregular data hierarchies. While pre-aggregation is essential for query performance in data warehousing, traditional "practical pre-aggregation" techniques often fail when faced with real-world data that is unbalanced or non-strict (where items have multiple parents). TreeScape introduces a transparent middleware layer that normalizes these complex dimensions, enabling significant storage savings and high performance without requiring manual query adjustments from users.
Introduction
In modern data warehousing, pre-calculating and storing aggregate values (e.g., total sales by region) is the primary method for ensuring rapid query response times. However, "full pre-aggregation"—calculating every possible combination of dimensions—is often infeasible due to a massive "storage blowup," which can increase data size by 200 to 500 times.
Most existing OLAP tools rely on "practical pre-aggregation," which assumes a regular, strictly hierarchical structure (a balanced tree). Real-world datasets, particularly in domains like medicine or finance, are rarely so neat. For instance, a specific medical diagnosis might belong to multiple diagnostic categories, or some branches of a hierarchy might be significantly deeper than others. Standard systems struggle with these irregularities, often leading to incorrect "double-counting" of data or forcing the system to fall back on slow, on-the-fly calculations from raw base data.
The TreeScape Approach
The TreeScape system bridges this gap through two core innovations: Dimension Normalization and the Query-Transforming ODBC Driver (QTOD).
Dimension Normalization
To make irregular hierarchies "well-behaved" for standard database engines, TreeScape transforms them into a normalized format. This involves introducing placeholder values to balance the tree and creating "fused" nodes to represent items with multiple parents. This process ensures that every leaf node effectively has a single path to the root, preventing the double-counting problem during aggregation.
Query-Transforming ODBC Driver (QTOD)
The architectural heart of the system is the QTOD, a middleware layer positioned between the ROLAP (Relational OLAP) client and the database. The QTOD intercepts standard SQL queries and transparently rewrites them to target the normalized tables. It also filters out internal placeholder values before returning results to the client, ensuring that the underlying complexity is hidden from the end-user.
Implementation and Results
The authors validated TreeScape using a medical case study featuring complex diagnostic hierarchies. The system demonstrated several key advantages:
- Storage Efficiency: By leveraging "multidimensional sparseness," TreeScape achieves storage savings factors of 100 or more compared to full pre-aggregation.
- Performance: Query response times are comparable to those of full pre-aggregation and significantly faster than computing aggregates from raw data.
- Vendor Independence: Because the logic is implemented within a custom ODBC driver, the solution is theoretically compatible with any Relational Database Management System (RDBMS) that supports standard interfaces.
Conclusion
TreeScape provides a robust solution for managing irregular hierarchies in OLAP environments. By combining sophisticated dimension normalization with a transparent middleware layer, it allows organizations to maintain high query performance and data accuracy without the prohibitive storage costs of full pre-aggregation. Future work may focus on further reducing middleware overhead and testing the system against even larger, more dynamic datasets.
Summary updated