concept performance in category mondrian

appears as: performce, performce, Performce
Mondrian in Action

This is an excerpt from Manning's book Mondrian in Action.

Mondrian is designed to run quickly. The structure of the OLAP database is designed for performance when doing calculations on large sets of data, with changes in analyses being shown in seconds. Additionally, Mondrian makes use of several optimization techniques, such as in-memory storage of calculations, to further increase speed. And because Mondrian can be embedded in a web application, it can easily be scaled for use by hundreds or thousands of users.

Although the performance gains vary significantly based on the structure of the data warehouse, the use of aggregate tables and in-memory caching can significantly increase performance. For example, one user had a fact table with several hundred million rows and eight dimension tables with up to 25 million rows. Running reports directly using SQL took about 10 minutes each. The addition of Mondrian with aggregations dropped the time to just over 8 seconds. With the addition of caching, these queries dropped to 2.4 seconds on average. Figure 1.10 illustrates the significant gains that can be made by using Mondrian (using Mondrian is more than 100 times faster, in this example).

One of the promises of Mondrian is that it supports analytics at the speed of thought. This means that when an analyst makes changes to a report, such as adding or removing dimensions and measures, adding calculations, and applying filters, the report needs to be updated within seconds, rather than minutes or hours. Given that analysis is often done over millions of records, performance is extremely important.

Out of the box, with a well-designed star schema, Mondrian performance is very good for a wide variety of datasets and queries. But some businesses want to do real-time analysis against millions of facts and thousands of dimension members. Eventually, even the fastest database and software will start to bog down with straight database calls. By default, Mondrian will perform some caching to speed things up, but squeezing out the highest levels of performance from your data sometimes takes additional configuration and effort.

Performance is an ongoing process

For most organizations, performance testing isn’t a one-time process and then you’re done. It’s an ongoing process that you’ll continue to perform. Over time, dimensions will likely get added, unanticipated questions will be asked, hardware and software will be upgraded, and so on. All of these changes can affect performance.

With the environment set up and some query performance results logged, you’re now ready to begin performance tuning. The rest of the chapter will cover the things you can do to improve performance. You’ll also find out how to automate some of the performance steps that would otherwise require manual effort.