Docsity

Diseño de un data mart, Apuntes de Sistemas de Gestión de Bases de Datos

Vista previa parcial del texto

¡Descarga Diseño de un data mart y más Apuntes en PDF de Sistemas de Gestión de Bases de Datos solo en Docsity!

THE DATA MART

Bodega y Minería de Datos Gustavo Cáceres Castellanos

“A data mart is a body of historical data in an electronic repository that does not participate in the daily operations of the organization. Instead, this data is used to create Business Intelligence. The data in the data mart usually applies to a specific area of the organization”.

Features of a Data Mart (2)

Not Real-Time data  (^) Data marts are updated at set of intervals. Data is copied from OLTP systems periodically and written to the data mart. This is known as data load.  (^) During data load, the OLTP systems have to work hard to prepare the data for copying to the data mart.  (^) Data load is an automated process that can be scheduled to run during off-peak hours.  (^) Information in the data mart has some latency (one month, one day) , but it must be up-to-date to facilitate effective decision making.

Feature of a Data Mart (3)

Consolidation and Cleansing Multiple OLTP systems can have different ways of representing data, causing a great deal of difficulty when trying to combine data from heterogeneous systems and even from a single system: o (^) Inconsistent data types o (^) Dissimilar unique identifiers o (^) Different time periods and calendars o (^) Business rules for BI may be stricter than for OLTP systems

Extract, Transform, and

Load

“The Extract , Transform, and Load (ETL) process extracts data to copy from one or more OLTP systems, performs any required data cleansing to transform the data into a consistent format, and loads the cleansed data by inserting it into the data mart.”

Data Mart Structure

Data used for BI belongs to four categories:

  1. Measures
  2. Dimensions
  3. Attributes
  4. Hierarchies

Measures

 Example Total sales $ 145.346.

Dimensions

“A dimension is a categorization used to spread out an aggregate measure to reveal its constituent parts”. Example of dimensions: ◦ (^) year ◦ (^) product type

2-Dimension

We can again spread out the total sales, this time for each product type. We have added another dimension to our measure: Product Type

3-Dimension

The Star Schema (2)

A star schema is a relational database schema used to hold measures and dimensions in a data mart. The measures are stored in a fact table, and dimensions are stored in dimension tables.

Fact Table

A column for each dimension containing the foreign key for a member of that dimension (^) One column for the measure Fact tables are named for the set of measures they contain, with the word “Fact” added to the end. (SalesFact)

The Star Schema

Example of Fact Table