SAP HANA Architecture
Ajay Kumar
HCL
Employee Table
ID Name Department Salary
1 Ram Finance 5000
2 Lakshman Finance 10000
3 Sita HR 10000
Row Oriented Physical Storage
ID Name Department Salary
1 Ram Finance 5000
2 Lakshman Finance 10000
3 Sita HR 10000
1,Ram,Finance,5000
2,Lakshman,Finance,10000
3,Sita,HR,10000
Row Based
physical
storage
Column Oriented Physical Storage
ID Name Department Salary
1 Ram Finance 5000
2 Lakshman Finance 10000
3 Sita HR 10000
1,Ram,Finance,5000;
2,Lakshman,Finance,10000;
3,Sita,HR,10000
Row Based
physical
storage
Column Oriented
physical storage
1,2,3;
Ram,Lakshman,Sita;
5000,10000,10000
Group Functions : Sum, Average
1,Ram,Finance,5000;
2,Lakshman,Finance,10000;
3,Sita,HR,10000
Row Based
physical
storage
Column Oriented
physical storage
1,2,3;
Ram,Lakshman,Sita;
5000,10000,10000
Creation of new record
1,Ram,Finance,5000;
2,Lakshman,Finance,10000;
3,Sita,HR,10000;
4,Ajay,HR,8000
Row Based
physical
storage
Column Oriented
physical storage
1,2,3,4;
Ram,Lakshman,Sita,Ajay;
Finance,Finance,HR,HR
5000,10000,10000,8000
OLTP Vs OLAP
OLTP OLAP
Row Oriented Row Oriented
Column Oriented
In-Memory Data Compression
1,Ram,Finance,5000;
2,Lakshman,Finance,10000;
3,Sita,HR,10000;
4,Ajay,HR,8000
Row Based
Column Oriented
1,2,3,4;
Ram,Lakshman,Sita,Ajay;
Finance,Finance,HR,HR;
5000,10000,10000,8000
1,2,3,4;
Ram,Lakshman,Sita,Ajay;
2:Finance, 2:HR;
5000,2:10000,8000
4 to 10
times

Sap HANA Column Oriented Architecture

  • 1.
  • 2.
    Employee Table ID NameDepartment Salary 1 Ram Finance 5000 2 Lakshman Finance 10000 3 Sita HR 10000
  • 3.
    Row Oriented PhysicalStorage ID Name Department Salary 1 Ram Finance 5000 2 Lakshman Finance 10000 3 Sita HR 10000 1,Ram,Finance,5000 2,Lakshman,Finance,10000 3,Sita,HR,10000 Row Based physical storage
  • 4.
    Column Oriented PhysicalStorage ID Name Department Salary 1 Ram Finance 5000 2 Lakshman Finance 10000 3 Sita HR 10000 1,Ram,Finance,5000; 2,Lakshman,Finance,10000; 3,Sita,HR,10000 Row Based physical storage Column Oriented physical storage 1,2,3; Ram,Lakshman,Sita; 5000,10000,10000
  • 5.
    Group Functions :Sum, Average 1,Ram,Finance,5000; 2,Lakshman,Finance,10000; 3,Sita,HR,10000 Row Based physical storage Column Oriented physical storage 1,2,3; Ram,Lakshman,Sita; 5000,10000,10000
  • 6.
    Creation of newrecord 1,Ram,Finance,5000; 2,Lakshman,Finance,10000; 3,Sita,HR,10000; 4,Ajay,HR,8000 Row Based physical storage Column Oriented physical storage 1,2,3,4; Ram,Lakshman,Sita,Ajay; Finance,Finance,HR,HR 5000,10000,10000,8000
  • 7.
    OLTP Vs OLAP OLTPOLAP Row Oriented Row Oriented Column Oriented
  • 8.
    In-Memory Data Compression 1,Ram,Finance,5000; 2,Lakshman,Finance,10000; 3,Sita,HR,10000; 4,Ajay,HR,8000 RowBased Column Oriented 1,2,3,4; Ram,Lakshman,Sita,Ajay; Finance,Finance,HR,HR; 5000,10000,10000,8000 1,2,3,4; Ram,Lakshman,Sita,Ajay; 2:Finance, 2:HR; 5000,2:10000,8000 4 to 10 times