What are OLTP and OLAP. What is the difference between them?

Amarnath R Shenoy picture Amarnath R Shenoy · Feb 20, 2014 · Viewed 273.5k times · Source

Actually what do they mean? All articles I find about them don't give me an idea, or my knowledge is too insufficient to understand it.

Will some one give me some resources with which I can learn this from scratch.

Answer

Nagaraj S picture Nagaraj S · Feb 20, 2014

Here you will find a better solution OLTP vs. OLAP

  • OLTP (On-line Transaction Processing) is involved in the operation of a particular system. OLTP 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). It involves Queries accessing individual record like Update your Email in Company database.

  • OLAP (On-line Analytical Processing) deals with Historical Data or Archival Data. OLAP 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). Sometime query need to access large amount of data in Management records like what was the profit of your company in last year.