Abstract
Object-Relational Data Warehouses (ORDW) face significant performance bottlenecks when executing complex Online Analytical Processing (OLAP) queries on massive central fact tables. This paper proposes a semantic-driven partitioning framework termed Associated Horizontal Class Partitioning (AHCP). By partitioning the fact table based on the predicates of its related dimension tables, the system significantly reduces unnecessary disk I/O. To manage the potential for storage explosion, the authors introduce the MP3 (Multiple Partition Processing Plan) algorithm—a cost-based heuristic designed to select the optimal subset of partitions for materialization. Analytical evaluations demonstrate theoretical disk I/O savings between 55% and 99% compared to traditional unpartitioned approaches, with performance gains scaling linearly with query selectivity.
Introduction
Modern data warehouses typically utilize star or snowflake schemas, centering on a massive "Fact" table (e.g., Sales) linked to several smaller "Dimension" tables (e.g., Customers, Products, Time). In an Object-Relational (OR) environment, these relationships are enriched with advanced features such as inheritance and class composition. However, querying these massive tables remains a resource-intensive task. Even with indexing, scanning a multi-terabyte fact table to filter for specific dimension attributes (e.g., "electronics sold to teenagers in the US") is slow and I/O intensive.
While traditional relational databases employ basic horizontal or vertical partitioning, they often fail to leverage the rich semantic hierarchies inherent in OR schemas. This research addresses the need for an intelligent partitioning strategy that aligns the physical data layout with actual query patterns, thereby minimizing the search space for complex OLAP operations.
Methodology
The authors propose a query-driven partitioning framework that utilizes two primary techniques to reorganize data based on semantic relevance:
1. Primary Horizontal Partitions (PHP)
The process begins with the dimension classes. These are partitioned based on simple query predicates. For example, the Customer class might be partitioned into Teenager and Adult subclasses. This initial step creates logical and physical segments at the dimension level.
2. Associated Horizontal Class Partitioning (AHCP)
The core contribution is the associative partitioning of the root Fact class based on the PHPs of its dimensions. In this model, the Sales table is physically divided into fragments that correspond to dimension segments, such as "Sales to Teenagers" or "Sales in the US." By embedding query semantics directly into the physical data layout, the database engine can entirely skip irrelevant chunks of the massive Fact table during execution.
3. The MP3 Selection Algorithm
Materializing every possible combination of partitions would lead to a storage and maintenance crisis. To solve this, the authors developed the MP3 (Multiple Partition Processing Plan) Algorithm, a three-step heuristic to identify the most valuable fragments:
- Generate: Create an exhaustive logical set of AHCPs based on all predicates in the query workload.
- Weight: Assign cumulative weights to these fragments based on query frequency and selectivity.
- Select: Perform a top-down evaluation to select a "minimal complete set" of AHCPs that minimizes retrieval cost while adhering to a defined storage budget.
Results and Discussion
The AHCP scheme was evaluated against a standard, unpartitioned baseline using an analytical cost model focused on Disk I/O. The study utilized a synthetic case study based on a "Sales" ORDW schema with an OLAP Query Group (OQG) of eight sample queries, including drill-down, roll-up, and slice-and-dice operations.
The findings indicate a cost ratio (Partitioned I/O divided by Unpartitioned I/O) ranging from 0.01 to 0.45. This translates to massive theoretical disk I/O savings of 55% to 99%, depending on the workload characteristics. A key insight is the linear relationship between performance gain and query selectivity; highly selective queries—those that return a very small slice of the total data—see the most dramatic improvements because the engine can prune the vast majority of the fact table.
Conclusion and Future Work
By leveraging the inheritance and composition features of Object-Relational systems, AHCP offers a powerful optimization for data warehousing. It allows physical partitions to be elegantly represented as logical subclasses, keeping the schema clean while maximizing performance.
While these analytical results are promising, the authors acknowledge limitations, such as the focus on simple, disjoint predicates. Future work will involve the development of an experimental ORDW prototype to validate these findings empirically using the TPC-H benchmark. Additionally, the team plans to explore combining AHCP with advanced indexing mechanisms, such as Structural Join Index Hierarchies, to further refine query processing efficiency.
Summary updated