A Foundation for Multi-dimensional Databases

Marc Gyssens, Laks V. S. LakshmananVLDB 1997

In the mid-1990s, while relational databases were grounded in the rigorous mathematical foundation established by E.F. Codd, the emerging field of On-Line Analytical Processing (OLAP) lacked a unified conceptual model. Analytical tools were powerful but often ad-hoc, leading to inconsistencies in data representation and manipulation. In their 1997 paper, "A Foundation for Multi-Dimensional Databases," Marc Gyssens and Laks V.S. Lakshmanan proposed a formal framework to bring "Codd-style" rigor to multi-dimensional data, treating dimensions and measures with equal mathematical respect.

The Need for Formality in OLAP

By the late 1990s, businesses required the ability to slice, dice, and aggregate data across multiple dimensions such as Time, Geography, and Product. The authors identified several critical gaps in the existing MDD landscape:

  1. Lack of Formality: MDD lacked a commonly agreed-upon conceptual model comparable to the relational model.
  2. Asymmetry: Existing tools often treated "dimensions" (the axes of the cube) and "measures" (the data values) differently, complicating transformations between the two.
  3. Ad-hoc Languages: Query languages for OLAP were frequently limited to specific operations and lacked the declarative power found in SQL.

The proposed model aimed to be "implementation-neutral," providing a consistent conceptual layer whether the underlying storage was a specialized multi-dimensional engine (MOLAP) or a standard relational database (ROLAP).

A Formal Conceptual Model

The fundamental data structure in this framework is the $n$-dimensional table. A key contribution of the paper is the distinction between a table's structure (its dimensions) and its content (the measures).

The Relational Mapping

To integrate multi-dimensional concepts with established relational theory, the authors demonstrated that any multi-dimensional table can be formally represented as a set of classical relations.

Figure 1: A sample two-dimensional table "Sales" with dimensions Category and Time.

As illustrated in Figure 1, a table is defined by its parameters (dimensions) and measures. This structure is mapped to a conceptual relational view consisting of relations for each dimension and a "measure relation" ($rm$) that links them, as shown in Figure 2.

Figure 2: The conceptual relational view of the table in Figure 1.

This mapping allows the model to leverage relational algebra's strengths while preserving the intuitive multi-dimensional perspective required for analysis.

Algebra and Calculus for MDD

The authors introduced a four-layered query architecture designed for complex analytical tasks:

  • Querying: Basic selection and projection.
  • Restructuring: Utilizing fold and unfold operators to dynamically change the dimensionality of the data (e.g., converting a measure into a dimension).
  • Classification: Grouping data based on specific criteria.
  • Summarization: Applying aggregate functions (e.g., Sum, Average) to these groups.

Furthermore, they developed a logic-based calculus and proved its equivalence to the proposed algebra, ensuring a robust theoretical foundation for declarative MDD query languages.

Key Insights and Contributions

  • Separation of Concerns: By decoupling structure from content, the algebra remains simple and flexible, allowing users to manipulate the "shape" of data without loss of information.
  • Symmetry: The model treats parameters and measures symmetrically. Any attribute can serve in either role, which is essential for sophisticated "slicing and dicing."
  • Formalizing the Data Cube: The paper provides a rigorous algebraic definition of the "Data Cube" and "Monotone Roll-Up" operators, showing they can be decomposed into sequences of simple algebraic steps like unfold, fold, and aggregate.

Conclusion

Gyssens and Lakshmanan's work established a necessary theoretical foundation for the development of powerful, declarative OLAP query languages. While the paper focuses on expressive power rather than execution efficiency, it paved the way for future research into algebraic optimization and physical implementation strategies for multi-dimensional databases.

Summary updated

BibTeX
@inproceedings{gyssens1997foundation,
  author = {Marc Gyssens and Laks V. S. Lakshmanan},
  title = {{A Foundation for Multi-dimensional Databases}},
  booktitle = {VLDB},
  year = {1997},
}
Figure