What is OLTP
Real-time transaction processing
OLTP (Online Transaction Processing) refers to systems that process transactions in real-time, optimized for fast execution of a large number of short operations.
OLTP Characteristics
- High speed — millisecond response time
- Many users — thousands of concurrent connections
- Short transactions — INSERT, UPDATE, DELETE
- ACID — data integrity guarantees
OLTP vs OLAP
| OLTP | OLAP | |------|------| | Operational data | Analytics | | Many short queries | Few complex queries | | Current state | Historical data | | Normalized tables | Denormalization |
Typical OLTP Systems
- Banking systems — transfers, payments
- E-commerce — orders, cart, checkout
- CRM — customer management
- ERP — accounting, inventory, manufacturing
OLTP Technologies
- PostgreSQL, MySQL, Oracle
- Microsoft SQL Server
- SAP HANA (in-memory)
- CockroachDB, TiDB (distributed)