ITPub博客

首页 > 数据库 > 数据库开发技术 > Data Warehouse vs OLTP Systems

Data Warehouse vs OLTP Systems

原创 数据库开发技术 作者:tsinglee 时间:2008-04-08 11:21:53 0 删除 编辑

Data warehouses and OLTP systems have very different requirements. Here are some
examples of differences between typical data warehouses and OLTP systems:

Workload
Data warehouses are designed to accommodate ad hoc queries. You might not know
the workload of your data warehouse in advance, so a data warehouse should be
optimized to perform well for a wide variety of possible query operations.

OLTP systems support only predefined operations. Your applications might be
specifically tuned or designed to support only these operations.


Data Modifications
A data warehouse is updated on a regular basis by the ETL process (run nightly
or weekly) using bulk data modification techniques. The end users of a data
warehouse do not directly update the data warehouse.

In OLTP systems, end users routinely issue individual data modification
statements to the database. The OLTP database is always up to date, and reflects
the current state of each business transaction.


Schema Design
Data warehouses often use denormalized or partially denormalized schemas (such
as a star schema) to optimize query performance.

OLTP systems often use fully normalized schemas to optimize update/insert/delete
performance, and to guarantee data consistency.


Typical Operations
A typical data warehouse query scans thousands or millions of rows.For example,
"Find the total sales for all customers last month."

A typical OLTP operation accesses only a handful of records. For example,
"Retrieve the current order for this customer."


Historical Data
Data warehouses usually store many months or years of data. This is to support
historical analysis.

OLTP systems usually store data from only a few weeks or months. The OLTP system
stores only historical data as needed to successfully meet the requirements of
the current transaction.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-1002048/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: TABLE LOCK
请登录后发表评论 登录
全部评论
  • 博文量
    740
  • 访问量
    2002850