Encyclopedia > OLAP

  Article Content

OLAP

Olap is an acronym for Online analytical processing. It is an approach to quickly providing the answer to complex database queries. It is used in business reporting for sales, marketing, management reporting, data mining and similar areas.

The reason for using Olap to answer queries is speed. Relational databases store entities in discrete tables, if they have been properly normalized. This structure is good for operational databases but for complex multi-table queries it is relatively slow. A better model for querying but worse for operation use is a dimensional database[?].

Olap takes a snapshot of a relational database and restructures it into dimensional data, the queries can then be run against this. It has been claimed that for complex queries Olap can produce an answer in around 0.1% of the time for the same query on relational data.

An Olap structure created from the operational data is called an Olap cube. The cube is created from a star schema of tables. At the centre is the fact table which lists the core facts which make up the query, linked to the fact table are numerous dimension tables. These tables indicate how the aggregations of relational data can be analysed. The number of possible aggregations is determined by every possible manner in which the original data can be hierarchically linked.

For example a set of customers can be grouped by city, by district or by country, so with 50 cities, 8 districts and two countries there are three hierarchical levels with 60 members. These customers can be considered in relation to products, if there are 250 products with 20 catagories, three families and three departments then there are 276 product members. With just these two dimensions there are 16,560 possible aggregations. As the data considered increases the number of aggregations can quickly total tens of millions or more.

The calculation of the aggregations and the base data combined make up an Olap cube, which can potentially contains all the answers to every query which can be answered from the data. Due to the potential number of aggregations to be calculated often only a predetermined number are fully calculated while the remainder are solved when demanded.

Beyond the basic concept there are three types of Olap - Multidimensional Olap (Molap), Relational Olap (Rolap), and Hybrid Olap (Holap). Molap is the 'classic' form of Olap as is sometimes referred to as just Olap, it uses a summary database, it has a specific dimensional database engine and creates the required schema as a dimensional set of both base data and aggregations. Rolap works directly with relational databases, the base data and the dimension tables are stored as relational tables and new tables are created to hold the aggregation information. Hybrid Olap uses relational tables to hold base data and multi-dimensional tables to hold the speculative aggregations.

Each type has certain benefits, although there is disagreement about the specifics of that between providers. Molap is better on smaller sets of data, it is faster to calculate the aggregations and return answers but does create enormous amounts of data. Rolap is considered more scaleable and uses the least space but is the slowest at pre-processing and query performance. Holap is between the two in all areas, but it can pre-process quickly and scale well. The difficulty in implementing Olap comes in forming the queries, choosing the base data and developing the schema, because of this most modern Olp products come with huge libaries of pre-configured queries. Another problems is in the base data, it must be complete and consistent.

While the first product which performed Olap queries was Oracle's Express which was released in 1970. However, the term was not invented until 1993 when it was coined by Ted Codd, who has been described as "the father of the relational database". The most well known Olap product was actually released a year earlier, Arbor's Essbase[?] (now owned by Hyperion). Arbor paid Codd to write his Olap paper and his "twelve laws of online analytical processing" were explicit in their reference to Essbase.

Other well known Olap products include Microsoft Analysis Services (previously called Olap Services, part of SQL Server), IBM's DB2 Olap Server, SAP BW and products from Brio, Businessobjects, Cognos and MicroStrategy. Around 50% of Olap licences are never deployed.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Christiania

... in the city of Copenhagen. This is a disambiguation page; that is, one that just points to other pages that might otherwise have the same name. If you followed a ...

 
 
 
This page was created in 41.9 ms