概念
- OLTP (On-line Transaction Processing):联机事务处理,注重的是每秒事务的处理速度和处理量,面向数据量小的场景,最典型的产品就是传统数据库;
- OLAP (On-line Analytical Processing):联机分析处理,侧重的数据的分析,支持多维度的复杂分析,面向海量数据量场景,用于数据挖掘和分析等,代表产品有Druid;
OLTP (On-line Transaction Processing) is characterized by a large number of short on-line transactions (INSERT, UPDATE, DELETE). The main emphasis for OLTP systems is put on very fast query processing, maintaining data integrity in multi-access environments and an effectiveness measured by number of transactions per second. In OLTP database there is detailed and current data, and schema used to store transactional databases is the entity model (usually 3NF).
OLAP (On-line Analytical Processing) is characterized by relatively low volume of transactions. Queries are often very complex and involve aggregations. For OLAP systems a response time is an effectiveness measure. OLAP applications are widely used by Data Mining techniques. In OLAP database there is aggregated, historical data, stored in multi-dimensional schemas (usually star schema).
区别
应用场景
参考: