SSAS 2008R2 Storage Modes

In SQL Server Analysis Services 2008, we have three storage mode options available to us: Relational Online Analytical Processing (ROLAP), Multidimensional Online Analytical Processing (MOLAP) and Hybrid Online Analytical Processing (HOLAP). 

Relational Online Analytical Processing (ROLAP)

The ROLAP storage mode allows the detail data and aggregations to be stored in the relational database. We have to be very careful on the Database design if we are using the ROLAP as the cube queries data directly from the Database and may cause performance issue if the Database design is not proper.

Benifits
Since the data is kept in the relational database instead of on the OLAP server, we can view the
data in almost real time. Also, since the data is kept in the relational database, it allows for much larger amounts of data, which can mean better scalability. Low latency.

Problems
- Poor query performance as all the data stays in the Database.
- We need to have permanent connection of the cube with the Database so the data can be pulled out from there.

Multidimensional Online Analytical Processing (MOLAP)

With MOLAP storage, the data and aggregations are stored in a multidimensional format, compressed and optimized for performance. Here data is aggregated and stored in the Cube.

Benifits  
- Query Performance will be much faster as aggregates are pre-calculated and stored in the Cube.

Problems 
- Large size data returning queries can cause problem as everything is on memory.
- We need to process the cubes to get the latest updated data.
- Additional amount of data is wasted as one copy of the fact and dimension data resides in the Database and another in the Cube.

Hybrid Online Analytical Processing (HOLAP)

HOLAP is a combination of MOLAP and ROLAP. HOLAP stores the detail data in the relational database but stores the aggregations in multidimensional format. Because of this, the aggregations will need to be processed when changes are occur.

Performance: not as slow as ROLAP, but not as fast as MOLAP. If, however, you were only querying aggregated data or using a cached query, query performance would be similar to MOLAP. But when we need to get that detail data, performance is closer to ROLAP 

Benifits 
- Cube  size is smaller than the MOLAP.
- Query time is faster than ROLAP.
- Process time is smaller than MOLAP.

Problems 
- Query performance can go down if more detailed data required.
 
   

No comments:

Post a Comment

T-SQL LEAD LAG and SUM function based query

  Query on T-SQL window clause Below is the sales table Order_Date Name Product SubCategory ...