Docsity

Data Mining - OLAP Server Architectures, Study notes of Data Mining

Toggle sidebar
bg1
November 27, 2014 Data Mining: Concepts and
Techniques 1
OLAP Server Architectures
•Relational OLAP (ROLAP)
–Use relational or extended-relational DBMS to store and
manage warehouse data and OLAP middle ware
–Include optimization of DBMS backend, implementation of
aggregation navigation logic, and additional tools and services
–Greater scalability
•Multidimensional OLAP (MOLAP)
–Sparse array-based multidimensional storage engine
–Fast indexing to pre-computed summarized data
•Hybrid OLAP (HOLAP) (e.g., Microsoft SQLServer)
–Flexibility, e.g., low level: relational, high-level: array
•Specialized SQL servers (e.g., Redbricks)
–Specialized support for SQL queries over star/snowflake
schemas
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Data Mining - OLAP Server Architectures and more Study notes Data Mining in PDF only on Docsity!

November 27, 2014 Data Mining: Concepts and 1

OLAP Server Architectures

  • (^) Relational OLAP (ROLAP)
    • (^) Use relational or extended-relational DBMS to store and

manage warehouse data and OLAP middle ware

  • (^) Include optimization of DBMS backend, implementation of

aggregation navigation logic, and additional tools and services

  • (^) Greater scalability
  • (^) Multidimensional OLAP (MOLAP)
  • (^) Sparse array-based multidimensional storage engine
  • (^) Fast indexing to pre-computed summarized data
  • (^) Hybrid OLAP (HOLAP) (e.g., Microsoft SQLServer)
  • (^) Flexibility, e.g., low level: relational, high-level: array
  • (^) Specialized SQL servers (e.g., Redbricks)
  • (^) Specialized support for SQL queries over star/snowflake

schemas

November 27, 2014 Data Mining: Concepts and 2

OLAP Guidelines (Dr. E.F. Codd

Rule)

  • (^) Dr. E.F. Codd the “father” of the relational model has formulated a list of 12 guidelines and requirements as the basis for selecting OLAP systems:
  1. Multidimensional conceptual view
  2. Transparency
  3. Accessibility
  4. Consistent reporting performance
  5. Client / Server Architecture
  6. Generic dimensionality
  7. Dynamic sparse matrix handling
  8. Multiuser support
  9. Unrestricted cross-dimensional operations
  10. Intuitive data manipulation
  11. Flexible reporting
  12. Unlimited dimensions & aggregation levels

November 27, 2014 Data Mining: Concepts and 4

  • (^) ROLAP

This methodology relies on manipulating the data stored in the relational database to give the

appearance of traditional OLAP's slicing and dicing functionality. In essence, each action of

slicing and dicing is equivalent to adding a "WHERE" clause in the SQL statement.

Advantages:

It can handle large amounts of data. The data size limitation of ROLAP technology is the

limitation on data size of the underlying relational database. In other words, ROLAP itself

places no limitation on data amount.

It can leverage functionalities inherent in the relational database. Often, relational database

already comes with a host of functionalities. ROLAP technologies, since they sit on top of the

relational database, can therefore leverage these functionalities.

Disadvantages:

Performance can be slow. Because each ROLAP report is essentially a SQL query (or multiple

SQL queries) in the relational database, the query time can be long if the underlying data size is

large.

It has limited by SQL functionalities. Because ROLAP technology mainly relies on generating

SQL statements to query the relational database, and SQL statements do not fit all needs (for

example, it is difficult to perform complex calculations using SQL), ROLAP technologies are

therefore traditionally limited by what SQL can do. ROLAP vendors have mitigated this risk by

building into the tool out-of-the-box complex functions as well as the ability to allow users to

define their own functions.

HOLAP

HOLAP technologies attempt to combine the advantages of MOLAP and ROLAP. For

summary-type information, HOLAP leverages cube technology for faster performance. When

detail information is needed, HOLAP can "drill through" from the cube into the underlying

relational data

November 27, 2014 Data Mining: Concepts and 5

The FASMI test

  • FAST means that the system is targeted to deliver most responses to users within about five seconds, with the simplest analyses taking no more than one second and very few taking more than 20 seconds. Independent research in The Netherlands has shown that end-users assume that a process has failed if results are not received with 30 seconds, and they are apt to hit ‘Alt+Ctrl+Delete’ unless the system warns them that the report will take longer. Even if they have been warned that it will take significantly longer, users are likely to get distracted and lose their chain of thought, so the quality of analysis suffers. This speed is not easy to achieve with large amounts of data, particularly if on-the-fly and ad hoc calculations are required. Vendors resort to a wide variety of techniques to achieve this goal, including specialized forms of data storage, extensive pre-calculations and specific hardware requirements, but we do not think any products are yet fully optimized, so we expect this to be an area of developing technology. In particular, the full pre- calculation approach fails with very large, sparse applications as the databases simply get too large (the database explosion problem), whereas doing everything on-the-fly is much too slow with large databases, even if exotic hardware is used. Even though it may seem miraculous at first if reports that previously took days now take only minutes, users soon get bored of waiting, and the project will be much less successful than if it had delivered a near instantaneous response, even at the cost of less detailed analysis. The OLAP Survey has found that slow query response is consistently the most often-cited technical problem with OLAP products, so too many deployments are clearly still failing to pass this test.
  • (^) ANALYSIS means that the system can cope with any business logic and statistical analysis that is relevant for the application and the user, and keep it easy enough for the target user. Although some pre-programming may be needed, we do not think it acceptable if all application definitions have to be done using a professional 4GL. It is certainly necessary to allow the user to define new ad hoc calculations as part of the analysis and to report on the data in any desired way, without having to program, so we exclude products (like Oracle Discoverer) that do not allow adequate end-user oriented calculation flexibility. We do not mind whether this analysis is done in the vendor's own tools or in a linked external product such as a spreadsheet, simply that all the required analysis functionality be provided in an intuitive manner for the target users. This could include specific features like time series analysis, cost allocations, currency translation, goal seeking, ad hoc multidimensional structural changes, non-procedural modeling, exception alerting, data mining and other application dependent features. These capabilities differ widely between products, depending on their target markets.

November 27, 2014 Data Mining: Concepts and 7

Cube Operation

  • (^) Cube definition and computation in DMQL

define cube sales[item, city, year]:

sum(sales_in_dollars)

compute cube sales

  • (^) Transform it into a SQL-like language (with a new operator

cube by, introduced by Gray et al.’96)

SELECT item, city, year, SUM (amount)

FROM SALES

CUBE BY item, city, year

  • (^) Need compute the following Group-Bys

(date, product, customer),

(date,product),(date, customer), (product, customer),

(date), (product), (customer)

(city) (item) () (year) (city, item) (city, year) (item, year) (city, item, year)

November 27, 2014 Data Mining: Concepts and 8

Efficient Processing OLAP

Queries

  • (^) Determine which operations should be performed on the available cuboids
    • (^) Transform drill, roll, etc. into corresponding SQL and/or OLAP operations,

e.g., dice = selection + projection

  • (^) Determine which materialized cuboid(s) should be selected for OLAP op.
    • (^) Let the query to be processed be on {brand, province_or_state} with the

condition “year = 2004”, and there are 4 materialized cuboids available:

1) {year, item_name, city}

2) {year, brand, country}

3) {year, brand, province_or_state}

4) {item_name, province_or_state} where year = 2004

Which should be selected to process the query?

  • (^) Explore indexing structures and compressed vs. dense array structs in MOLAP

November 27, 2014 Data Mining: Concepts and 10 From On-Line Analytical Processing (OLAP) to On Line Analytical Mining (OLAM)

  • (^) Why online analytical mining?
    • (^) High quality of data in data warehouses
      • (^) DW contains integrated, consistent, cleaned data
    • (^) Available information processing structure surrounding data warehouses - (^) ODBC, OLEDB, Web accessing, service facilities, reporting and OLAP tools
    • (^) OLAP-based exploratory data analysis
      • (^) Mining with drilling, dicing, pivoting, etc.
    • (^) On-line selection of data mining functions
      • (^) Integration and swapping of multiple mining functions, algorithms, and tasks

November 27, 2014 Data Mining: Concepts and 11

An OLAM System Architecture

Data Warehouse Meta Data MDDB OLAM Engine OLAP Engine User GUI API Data Cube API Database API Data cleaning Data integration Layer OLAP/OLAM Layer MDDB Layer Data Repository Layer User Interface Filtering&Integration Filtering Databases Mining query Mining result