HANA DBbeginner

SAP HANA In-Memory Computing Fundamentals

The architectural principles that make HANA fundamentally different from traditional disk-based relational databases.

HANA architecture fundamentals are the baseline every HANA-related interview question builds on, and interviewers ask about this early to confirm a candidate understands why HANA is genuinely different from a traditional database with a big cache, rather than just knowing it's "SAP's fast database."

A disk-based database is like a librarian who must walk to a distant archive stacks room and fetch each book individually; HANA is like having the entire library's contents already photographically memorized and mentally indexed, so any question about any book's contents - including ones spanning thousands of books at once - gets answered instantly without a single trip to the shelves.

Key Concepts

1
The defining characteristic is that HANA holds the primary copy of data in RAM rather than on disk, with disk persistence used only for durability (savepoints and transaction log for recovery, not for normal read/write operations) - this eliminates the traditional disk I/O bottleneck that dominates conventional database performance, since even the fastest SSDs are orders of magnitude slower than RAM access. This is combined with column-store storage as the default table type (as opposed to row-store), because analytical queries typically touch few columns across many rows, and a column-store lets the engine read and compress only the relevant columns rather than scanning entire rows just to extract a few fields.
2
HANA's compression is aggressive and central to its performance model - column data is dictionary-encoded (each unique value stored once with a compact integer reference replacing repeated occurrences) which both shrinks the memory footprint dramatically for typical business data (lots of repeated values like status codes, country codes, material groups) and speeds up operations like filtering and aggregation, since the engine can often operate directly on the compressed integer representations rather than decompressing first. Massively parallel processing across many CPU cores, combined with SIMD (single-instruction-multiple-data) vectorized operations on column data, further multiplies throughput for the aggregation-heavy workloads typical of both OLTP and OLAP queries running on the same system.
3
A senior-level answer connects this to why HANA enabled architectural changes elsewhere in SAP's stack (the Universal Journal, embedded analytics, code pushdown via CDS/AMDP all discussed in other topics) - none of those were really feasible on a traditional disk-based database at acceptable performance, so HANA isn't just "a faster database" bolted under the same old application architecture, it's the enabling technology behind a genuinely different way of building SAP applications.