Companies today have data coming from many sources. Combined, read and understood quickly, it helps them manage the business and its processes better.
That data can be transactions created in the ERP, events and streams from sensors on equipment and machines, real-time analytics from reporting, planning and simulation, and text from log files, interfaces and IoT.
A database does two kinds of work for your applications: transactional and analytical. The two kinds of query differ in some ways and are almost identical in others.
OLTP (online transaction processing) queries include entering sales orders, billing documents and receivables, or displaying a single document or master record. OLAP (online analytical processing) is about analyzing that transactional data: reporting, sales forecasts, payment reminders and cross-selling. For example, a salesperson might spot a chance to sell more products or services to a customer based on their social media interests.
System landscapes were designed to handle OLTP and OLAP separately because OLAP queries take longer to run. Analytical processing tends to slow down core daily processes such as manufacturing and selling. So enterprise systems were optimized for either OLTP or OLAP, for performance reasons.
The assumption was always that OLTP is write-intensive and OLAP is read-only. Recent research across many companies shows that isn’t true.
The same research found that the lookup rate in OLTP is only 10% higher than in OLAP. OLTP has slightly more inserts, but OLAP also handles inserts to stay in sync with the transactional system. Updates in OLTP are also less frequent than people believed. In most industries with a current management system, updates make up 12% of OLTP activity, so 88% of the rows stored in OLTP are never updated. These findings led to a new approach to deleting and inserting records, and to combining both systems into one.

In OLTP, 83% of queries are reads. That makes sense: you don’t just enter data, you use it, for example to read the invoice you’re sending a customer.
OLAP has slightly more reads, but the difference is small. So why not use OLAP’s read optimizations in OLTP as well? That’s where column-oriented storage comes in. Modern hardware made it possible, creating a single source of truth for real-time analytics, with everything calculated on the fly and no aggregates.
The main difference between the two is that OLTP queries read many columns from a few rows, while OLAP queries aggregate a few columns over a large number of rows. Keeping separate OLTP and OLAP systems in sync takes a big ETL process, which is slow and complex because the data has to be extracted and reshaped into the analytical format.

The downside of separating OLAP from OLTP
Separate systems do optimize performance for each workload, but there are drawbacks:
- OLAP never has the latest data. Refreshing between the systems takes minutes to hours, so decisions based on reports rely on old data instead of real-time data. Think of a marketing campaign judged by what customers are saying on Twitter. With more than 350,000 tweets a minute, the picture can change in minutes.
- To perform acceptably, OLAP needs materialized aggregates, which limits how flexibly reports can serve different users.
- OLTP and OLAP schemas are very different, so applications that use both need a complex ETL process to keep the data in sync.
What can change?
Research on how companies use their systems showed that tables keep getting wider while many of their fields go unused. In tables with hundreds of columns, more than half are roughly never used. The columns that are used hold few distinct values, and the rest are full of NULLs or defaults. Their information content is close to zero.
Knowing this opens the door to compression techniques that cut memory and data consumption.


Leave a Reply