The meaning and difference between OLTP and OLAP

OLTP (on-line transaction processing) translates to online transaction processing, or online transaction processing system

OLAP (On-Line Analytical Processing) translates into online analytical processing, or online analytical system

Literally, OLTP is for transaction processing, and OLAP is for analytical processing. From the perspective of database operations, OLTP is mainly to add, delete and modify data, and OLAP is to query data.

the difference:

OLTP is mainly used to record the occurrence of certain types of business events, such as purchase behavior. When the behavior occurs, the system will record who did what, when and where, such a row (or multiple rows) of data will be added, deleted, and modified. Data update processing operations in the database require high real-time performance, strong stability, and ensure the successful update of data in a timely manner. Common business systems such as ERP, CRM, OA and other systems in the company are all OLTP.

When data accumulates to a certain extent, we need to make a summary analysis of what happened in the past, we need to take out the data generated in the past period of time for statistical analysis, obtain the information we want from it, and provide it for the company to make decisions. Support, this time is doing OLAP

Because the business data generated by OLTP is scattered in different business systems, and OLAP often requires different business data to be collected together for unified and comprehensive analysis. At this time, the corresponding data needs to be cleaned and stored in the data according to business analysis requirements. In the warehouse, the data warehouse provides OLAP analysis uniformly. So we often say that OLTP is the application of the database, OLAP is the application of the data warehouse, the following is a brief comparison with a picture.

Therefore, the relationship between OLAP and OLTP can be regarded as OLAP dependent on OLTP, because the data analyzed by OLAP is generated by OLTP, it can also be regarded as an extension of OLTP, which allows OLTP to discover the value of data generated the process of.

 

Example:

OLAP example Any Datawarehouse system is an OLAP system.
The use of OLAP is as follows. The company may compare September mobile phone sales with October sales , and then compare these results with another location that may be stored in the correct database. Amazon analyzes the purchases of its customers to provide a personalized homepage containing products that its customers may be interested in.
OLTP system example An example of an OLTP system is an ATM center.
Suppose a couple has a joint account in the bank. One day, both arrived at different ATM centers at the exact same time and wanted to withdraw the total amount in their bank accounts. However, the person who completes the identity verification process first will be able to withdraw money.
In this case, the OLTP system ensures that the withdrawal amount will never exceed the amount existing in the bank. The key to note here is that the OLTP system is optimized for the transactions processed, not for data analysis.
Other examples of OLTP systems are: online banking, online ticket booking, sending SMS, order entry, adding books to the shopping cart

 

Advantages and disadvantages:

The advantages of using OLAP services
OLAP creates a platform for all types of business analysis needs (including planning, budgeting, forecasting and analysis).
The main benefit of OLAP is the consistency of information and calculations. Easily impose security restrictions on users and objects to comply with regulations and protect sensitive data.
Disadvantages of OLAP services
Implementation and maintenance depend on IT professionals, because traditional OLAP tools require a complex modeling process. OLAP tools require cooperation between personnel from various departments, and the process is relatively cumbersome and complicated.
Advantages of the OLTP method
It manages the daily transactions of the organization. OLTP expands an organization's customer base by simplifying individual processes.
Disadvantages of OLTP method
If the OLTP system faces hardware failures, then online transactions will be severely affected. When the OLTP system allows multiple users to access and change the same data at the same time, it can cause confusion.

other:

On-line Analytical Processing (OLAP, On-line Analytical Processing), large data volume, less DML. Use data warehouse templates

Online transaction processing (OLTP, On-line Transaction Processing), the amount of data is small, and DML is frequent. Use general purpose or transaction processing templates

On-line transaction processing (OLTP, On-line Transaction Processing), DML operations are frequent, and there are many parallel transactions, but they are generally short.

Decision support system (DDS, Decision support system), the typical operation is full table scan, long query, long transaction, but the number of general transactions is very small, often a transaction exclusive system.

Guess you like

Origin blog.csdn.net/qq_37061368/article/details/109493023