The Wayback Machine - https://web.archive.org/web/20250403165949/https://www.geeksforgeeks.org/data-warehousing/
Open In App

Data Warehousing

Last Updated : 27 Jan, 2025
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

A data warehouse is a centralized system used for storing and managing large volumes of data from various sources. It is designed to help businesses analyze historical data and make informed decisions. Data from different operational systems is collected, cleaned, and stored in a structured way, enabling efficient querying and reporting.

  • Goal is to produce statistical results that may help in decision-making.
  • Ensures fast data retrieval even with the vast datasets.
data_warehouse

Data Warehouse Architecture

Need for Data Warehousing

1. Handling Large Volumes of Data: Traditional databases can only store a limited amount of data (MBs to GBs), whereas a data warehouse is designed to handle much larger datasets (TBs), allowing businesses to store and manage massive amounts of historical data.

2. Enhanced Analytics: Transactional databases are not optimized for analytical purposes. A data warehouse is built specifically for data analysis, enabling businesses to perform complex queries and gain insights from historical data.

3. Centralized Data Storage: A data warehouse acts as a central repository for all organizational data, helping businesses to integrate data from multiple sources and have a unified view of their operations for better decision-making.

4. Trend Analysis: By storing historical data, a data warehouse allows businesses to analyze trends over time, enabling them to make strategic decisions based on past performance and predict future outcomes.

5. Support for Business Intelligence: Data warehouses support business intelligence tools and reporting systems, providing decision-makers with easy access to critical information, which enhances operational efficiency and supports data-driven strategies.

Components of Data Warehouse

The main components of a data warehouse include:

  • Data Sources: These are the various operational systems, databases, and external data feeds that provide raw data to be stored in the warehouse.
  • ETL (Extract, Transform, Load) Process: The ETL process is responsible for extracting data from different sources, transforming it into a suitable format, and loading it into the data warehouse.
  • Data Warehouse Database: This is the central repository where cleaned and transformed data is stored. It is typically organized in a multidimensional format for efficient querying and reporting.
  • Metadata: Metadata describes the structure, source, and usage of data within the warehouse, making it easier for users and systems to understand and work with the data.
  • Data Marts: These are smaller, more focused data repositories derived from the data warehouse, designed to meet the needs of specific business departments or functions.
  • OLAP (Online Analytical Processing) Tools: OLAP tools allow users to analyze data in multiple dimensions, providing deeper insights and supporting complex analytical queries.
  • End-User Access Tools: These are reporting and analysis tools, such as dashboards or Business Intelligence (BI) tools, that enable business users to query the data warehouse and generate reports.

Characteristics of Data Warehousing

Data warehousing is essential for modern data management, providing a strong foundation for organizations to consolidate and analyze data strategically. Its distinguishing features empower businesses with the tools to make informed decisions and extract valuable insights from their data.

  • Centralized Data Repository: Data warehousing provides a centralized repository for all enterprise data from various sources, such as transactional databases, operational systems, and external sources. This enables organizations to have a comprehensive view of their data, which can help in making informed business decisions.
  • Data Integration: Data warehousing integrates data from different sources into a single, unified view, which can help in eliminating data silos and reducing data inconsistencies.
  • Historical Data Storage: Data warehousing stores historical data, which enables organizations to analyze data trends over time. This can help in identifying patterns and anomalies in the data, which can be used to improve business performance.
  • Query and Analysis: Data warehousing provides powerful query and analysis capabilities that enable users to explore and analyze data in different ways. This can help in identifying patterns and trends, and can also help in making informed business decisions.
  • Data Transformation: Data warehousing includes a process of data transformation, which involves cleaning, filtering, and formatting data from various sources to make it consistent and usable. This can help in improving data quality and reducing data inconsistencies.
  • Data Mining: Data warehousing provides data mining capabilities, which enable organizations to discover hidden patterns and relationships in their data. This can help in identifying new opportunities, predicting future trends, and mitigating risks.
  • Data Security: Data warehousing provides robust data security features, such as access controls, data encryption, and data backups, which ensure that the data is secure and protected from unauthorized access.

Types of Data Warehouses

The different types of Data Warehouses are:

  1. Enterprise Data Warehouse (EDW): A centralized warehouse that stores data from across the organization for analysis and reporting.
  2. Operational Data Store (ODS): Stores real-time operational data used for day-to-day operations, not for deep analytics.
  3. Data Mart: A subset of a data warehouse, focusing on a specific business area or department.
  4. Cloud Data Warehouse: A data warehouse hosted in the cloud, offering scalability and flexibility.
  5. Big Data Warehouse: Designed to store vast amounts of unstructured and structured data for big data analysis.
  6. Virtual Data Warehouse: Provides access to data from multiple sources without physically storing it.
  7. Hybrid Data Warehouse: Combines on-premises and cloud-based storage to offer flexibility.
  8. Real-time Data Warehouse: Designed to handle real-time data streaming and analysis for immediate insights.

Data Warehouse vs DBMS 

Database

Data Warehouse

A common Database is based on operational or transactional processing. Each operation is an indivisible transaction.

A data Warehouse is based on analytical processing.

Generally, a Database stores current and up-to-date data which is used for daily operations.

A Data Warehouse maintains historical data over time. Historical data is the data kept over years and can used for trend analysis, make future predictions and decision support.

A database is generally application specific.

Example – A database stores related data, such as the student details in a school.

A Data Warehouse is integrated generally at the organization level, by combining data from different databases.

Example – A data warehouse integrates the data from one or more databases , so that analysis can be done to get results , such as the best performing school in a city.

Constructing a Database is not so expensive.

Constructing a Data Warehouse can be expensive.

Issues Occur while Building the Warehouse

When and how to gather data?

In a source-driven architecture for gathering data, the data sources transmit new information, either continually (as transaction processing takes place), or periodically (nightly, for example). In a destination-driven architecture, the data warehouse periodically sends requests for new data to the sources. Unless updates at the sources are replicated at the warehouse via two phase commit, the warehouse will never be quite up to-date with the sources. Two-phase commit is usually far too expensive to be an option, so data warehouses typically have slightly out-of-date data. That, however, is usually not a problem for decision-support systems.

What schema to use?

Data sources that have been constructed independently are likely to have different schemas. In fact, they may even use different data models. Part of the task of a warehouse is to perform schema integration, and to convert data to the integrated schema before they are stored. As a result, the data stored in the warehouse are not just a copy of the data at the sources. Instead, they can be thought of as a materialized view of the data at the sources.

Data transformation and cleansing?

The task of correcting and preprocessing data is called data cleansing. Data sources often deliver data with numerous minor inconsistencies, which can be corrected. For example, names are often misspelled, and addresses may have street, area, or city names misspelled, or postal codes entered incorrectly. These can be corrected to a reasonable extent by consulting a database of street names and postal codes in each city. The approximate matching of data required for this task is referred to as fuzzy lookup.

How to propagate update?

Updates on relations at the data sources must be propagated to the data warehouse. If the relations at the data warehouse are exactly the same as those at the data source, the propagation is straightforward. If they are not, the problem of propagating updates is basically the view-maintenance problem.

What data to summarize?

The raw data generated by a transaction-processing system may be too large to store online. However, we can answer many queries by maintaining just summary data obtained by aggregation on a relation, rather than maintaining the entire relation. For example, instead of storing data about every sale of clothing, we can store total sales of clothing by item name and category.

Example Applications of Data Warehousing 

Data Warehousing can be applied anywhere where we have a huge amount of data and we want to see statistical results that help in decision making. 

  • Social Media Websites: The social networking websites like Facebook, Twitter, Linkedin, etc. are based on analyzing large data sets. These sites gather data related to members, groups, locations, etc., and store it in a single central repository. Being a large amount of data, Data Warehouse is needed for implementing the same.
  • Banking: Most of the banks these days use warehouses to see the spending patterns of account/cardholders. They use this to provide them with special offers, deals, etc.
  • Government: Government uses a data warehouse to store and analyze tax payments which are used to detect tax thefts.

Advantages of Data Warehousing

  • Intelligent Decision-Making: With centralized data in warehouses, decisions may be made more quickly and intelligently.
  • Business Intelligence: Provides strong operational insights through business intelligence.
  • Data Quality: Guarantees data quality and consistency for trustworthy reporting.
  • Scalability: Capable of managing massive data volumes and expanding to meet changing requirements.
  • Effective Queries: Fast and effective data retrieval is made possible by an optimized structure.
  • Cost reductions: Data warehousing can result in cost savings over time by reducing data management procedures and increasing overall efficiency, even when there are setup costs initially.
  • Data security: Data warehouses employ security protocols to safeguard confidential information, guaranteeing that only authorized personnel are granted access to certain data.
  • Faster Queries: The data warehouse is designed to handle large queries that’s why it runs queries faster than the database..
  • Historical Insight: The warehouse stores all your historical data which contains details about the business so that one can analyze it at any time and extract insights from it.

Disadvantages of Data Warehousing

  • Cost: Building a data warehouse can be expensive, requiring significant investments in hardware, software, and personnel.
  • Complexity: Data warehousing can be complex, and businesses may need to hire specialized personnel to manage the system.
  • Time-consuming: Building a data warehouse can take a significant amount of time, requiring businesses to be patient and committed to the process.
  • Data integration challenges: Data from different sources can be challenging to integrate, requiring significant effort to ensure consistency and accuracy.
  • Data security: Data warehousing can pose data security risks, and businesses must take measures to protect sensitive data from unauthorized access or breaches.

Data Warehousing – FAQs

What is meant by data warehousing?

Data warehousing refers to the process of storing, managing, and organizing large volumes of data from various sources for analysis and reporting.

What is a data warehouse and an example?

A data warehouse is a centralized storage system for historical data, designed for analytical purposes. An example is Amazon Redshift, which stores large amounts of data for business intelligence.

What is the full form of ETL?

ETL stands for Extract, Transform, and Load, which is the process of extracting data, transforming it into a usable format, and loading it into a data warehouse.

What is OLAP and OLTP?

OLAP (Online Analytical Processing) is used for complex queries and data analysis, while OLTP (Online Transaction Processing) is designed for handling real-time transactional data.



Next Article

Similar Reads

three90RightbarBannerImg