Beruflich Dokumente
Kultur Dokumente
In-Memory database
SAP HANA runs on multi-core CPUs with fast communication between
processor cores and contains terabytes of main memory.
The more you can do directly on the data in memory next to the CPUs,
the better the application will perform. This is the key to development
on the SAP HANA data platform.
Contd..
Disk or solid-state drives are used for permanent persistency.
The column scanning speed of the in-memory column store and the
compression mechanisms allow read operations with very high
performance.
Contd..
Eliminates additional indexes and thus reduces complexity.
The table has a small number of rows (e. g. configuration tables, system
tables).
De-Merits of Row-store
Row based tables cannot be used in following circumstances:
In case of analytic applications where aggregation are used and fast
search and processing is required.
In row based tables all data in a row has to be read even though the
requirement may be to access data from a few columns.
What type to choose?
In case of analytic applications where aggregations are used and fast
search and processing is required, column-store is used.
In row based tables all data in a row has to be read even though the
requirement may be to access data from a few columns. Hence these
queries on huge amounts of data take a lot of time.
In columnar tables, this information is stored physically next to each
other, significantly increasing the speed of certain data queries.
Contd..
Hence use column-store for OLAP queries (Queries using aggregate
functions).
It contains the actual data stores and the engines for processing the
data.
Pre-Processor Server
The Index Server utilizes the Pre-Processor Server to analyze text data
and extract data from text when called via the Search function.
Contd..
Statistical Server
The Statistical Server will analyze and present status, performance and
metrics from all SAP HANA Database components.
Name Server
The Topology of the SAP HANA Database is recorded here.
This allows an organization to host system services that are part of the
SAP HANA Database (ex. Search service )
Persistence layer
Responsible for recovery in the event of power failure.
Persistence layer components
Persistence layer of Sap HANA relies on Data and Log volumes.
Data and Log volumes are used as follows:
On regular basis, data pages and mirror images are written in the data
volumes. This process is called Savepoint.
Between two Savepoints, after images are written in log volumes. This is
done each time, the transaction is committed.
Before image - A copy of a record (or page of memory) before it has been
modified.
After image - A copy of a record (or page of memory) after it has been
modified.
The Savepoint relies to a concept called Shadow memory.
Shadow memory
With the shadow page concept, physical disk pages written by last
Savepoint are not overwritten until the next Savepoint is successfully
completed.
Until the next Savepoint is complete, two physical pages may exist for
one logical page-
The shadow page which still contains the version of the last Savepoint.
The current physical page which contains the changes written to disk after
last Savepoint.
Restart procedure
After a restart, the system is restored from the Savepoint versions of the
data pages.
This way all data changes written since the last Savepoint are not
restored.
After the Savepoint is restored, the log is replayed to restore the most
recent committed state.
Thank you.