Mondrian
activeby Pentaho · since 2002 · also known as Mondrian OLAP, Pentaho Analysis
Java ROLAP engine that answers MDX queries by generating SQL against your relational warehouse.
Overview
Mondrian is a relational OLAP (ROLAP) engine written in Java. You describe cubes, dimensions and measures over existing star or snowflake schemas in an XML schema file, and Mondrian turns MDX queries into SQL against the underlying database, caching cell results and using aggregate tables when they exist. It exposes the olap4j API and XML for Analysis, powers Pentaho's analysis tools and has been embedded in other BI front ends. First released in 2002 and acquired by Pentaho in 2005, it is still developed in the pentaho/mondrian repository, but since Pentaho 10.3 (late 2024) the source has been published under the Business Source License 1.1 instead of the EPL. It is only a query engine: storage, durability and scale come from the SQL database beneath it.
Strengths & trade-offs
Strengths
- +Adds an MDX/OLAP layer over an existing relational warehouse without copying data
- +Aggregate-table awareness and a cell cache cut repeated query cost
- +Standard olap4j and XMLA interfaces for pivot-table clients
- +Two decades of production use inside Pentaho deployments
Trade-offs
- −Speed is bounded by the SQL it generates and the database underneath
- −Verbose XML cube schemas are hard to maintain
- −Moved to BSL 1.1, so production use now requires a commercial license
- −MDX skills and client tooling are increasingly niche
Great for
- +Pivot-style analytics over a star schema in PostgreSQL, MySQL or a warehouse
- +Embedding OLAP cubes in Java BI applications
- +Pentaho Business Analytics deployments
Think twice for
- −Real-time analytics on streaming data
- −Teams wanting a SQL-first semantic layer
- −Huge data volumes without a fast columnar database underneath
Capabilities
Native or official first-party support · 1 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- None
- Consistency
- Eventual
- Schema
- Strict
- Architecture
- Embedded, Client server
- Query languages
- MDX
Scales with the SQL database underneath; Mondrian itself is a JVM process with an in-memory cell cache.
Deployment
Ecosystem
Alternatives to Mondrian
OLAP engine that pre-computes cubes and aggregate indexes for sub-second SQL on huge datasets.
mondrian vs apache-kylin →Oracle's multidimensional OLAP cube server, the long-time engine behind financial planning and reporting.
mondrian vs essbase →Open-source columnar OLAP database known for very fast aggregations over billions of rows.
mondrian vs clickhouse →Real-time analytics database for sub-second slice-and-dice over streaming event data.
mondrian vs apache-druid →In-process columnar SQL database: the SQLite of analytics, running inside your app or notebook.
mondrian vs duckdb →IBM's FPGA-accelerated MPP warehouse, now offered as NPS on-prem, in Cloud Pak and as a service.
mondrian vs ibm-netezza →Mondrian FAQ
What is Mondrian?
Mondrian is a relational database by Pentaho, first released in 2002. Mondrian is a relational OLAP (ROLAP) engine written in Java. You describe cubes, dimensions and measures over existing star or snowflake schemas in an XML schema file, and Mondrian turns MDX queries into SQL against the underlying database, caching cell results and using aggregate tables when they exist. It exposes the olap4j API and XML for Analysis, powers Pentaho's analysis tools and has been embedded in other BI front ends. First released in 2002 and acquired by Pentaho in 2005, it is still developed in the pentaho/mondrian repository, but since Pentaho 10.3 (late 2024) the source has been published under the Business Source License 1.1 instead of the EPL. It is only a query engine: storage, durability and scale come from the SQL database beneath it.
Is Mondrian open source?
Not in the OSI sense. Mondrian is source-available: you can read the code, but the license restricts some uses, typically offering it as a competing managed service. License: Business Source License 1.1 (since 10.3; older releases EPL).
Does Mondrian support ACID transactions?
No. Mondrian does not provide ACID transactions; its consistency model is eventual.
Does Mondrian scale horizontally?
Mondrian does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at medium scale (≤ 10 TB).
How can I run Mondrian?
You can self-host it and embed it in your application.
What is Mondrian best for?
Mondrian is a strong fit for pivot-style analytics over a star schema in PostgreSQL, MySQL or a warehouse; embedding OLAP cubes in Java BI applications; and pentaho Business Analytics deployments. Think twice for real-time analytics on streaming data.
What are the best alternatives to Mondrian?
Common alternatives to Mondrian include Apache Kylin, Essbase, ClickHouse, Apache Druid and DuckDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is Mondrian?
Mondrian ranks #267 of 844 databases on the WhichDB Score (12.4/100), and #84 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.