Sap Hana:: OLTP: Simple Queries Like INSERT, UPDATE, DELETE Etc
Sap Hana:: OLTP: Simple Queries Like INSERT, UPDATE, DELETE Etc
volumes of non-aggregated transactional data in real time. Meaning: Basically SAP HANA is a database. It addresses many problems which are being faced in the traditional databases through its In-Memory concept . Disk I/O- When a hard drive is used to store the data, CPU sits idle during the time the data is being written. Hence Disk I/O always causes performance bottleneck. Whereas Inmemory storage overcomes this problem since the data is stored in RAM rather than hard drive. SAP HANA utilises this technology reducing the performance risk. Hence for HANA to be installed, we need to have good hardware configuration 40 cores and 512 GB RAM. SAP HANA has both OLTP and OLAP capabilities OLTP: Simple queries like INSERT, UPDATE, DELETE etc. Returns few records Does not require much processing time OLAP: Complex aggregations sometimes combination of various OLTP queries Returns huge number of records depending upon the data Requires more processing time. EX: Data warehouses HANA Database Features: 1. In-Memory 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Massively Parallel Processing Hybrid Database Column Store Row Store Complex Event Processing Calculation Engine Compression Virtual Views Partitioning No aggregates
Disk write operations happen asynchronously as a back ground task. Generally on system start-up, HANA loads all of its tables into memory.
Row-Oriented storage is well suited for OLTP whereas Column-oriented storage is well suited for OLAP. SAP HANA is a hybrid database which contains both. And both these storages are InMemory. The HANA database allows the developer to specify whether a table is to be stored column-wise or row-wise. It is also possible to alter a table from column to row and vice-versa.
The goal of keeping all relevant data in main memory can be achieved with less cost if data compression is used. Columnar data storage allows highly efficient compression.
7. Modeling Studio:
HANA is connected to ERP systems - Front-end Modeling Studio can be used for load control and replication server management. Using Modeling studio we can, Specify what tables are stored in HANA Schedule data replication jobs Manage Data Services to load the data from SAP BW and other 3rd party systems Manage connections to ERP instances Use data services for their modeling Do modeling in HANA itself without depending upon data services.
8. Reporting
Client tools can access HANA directly; Like MS Excel, SAP BI Reporting tools, Dashboard tools etc can also access HANA directly Third party tools can gain advantage through the use of ODBC, JDBC and ODBO drivers in HANA HANA supports BICS interface (Business Intelligence Customer Services). BICS is used for BEx queries.
If analytical views are used in SQL statements, then the measures should be aggregated using SQL aggregate functions whereas normal attributes can be handled as regular columns. Calculation Views: (Hits the calculation engine) Calculation views are defined as either graphical views or scripted views depending on how they are created. Calculation views always have atleast one measure. Calculation Engine: Used for complex calculations that cannot be carried by OLAP and Join Engine. OLAP Engine: Used for calculation and aggregation based on star schema or similar Join Engine: Used for all kinds of joins. Basic Modeling Rules To Follow: Always think in sets of data not rows of data In the case when both analytic views generate lots of records when joined, then better to go for union rather than join. A join can be used when one of the analytic views generates a less number of records (less than one million) into a calculation view. Before the data that is transferred from OLAP Engine to calculation engine, the data must be minimized this can be done using projections (by applying filter criteria). Use Set Processing for Mass Data It is very important to avoid loops while modeling since they lead to poor performance Attributes: There are three types of attributes in SAP HANA - Simple attributes, Calculated attributes and Private attributes. Simple Attributes are non-measurable analytical elements that are derived from the data. Calculated Attributes are derived from one or more existing attributes or constants Ex: Deriving a weekday name from calday. Private Attributes are used in analytic view to allow you to customize the behaviour of an attribute only for that view. If an analytic view or calculation view includes an attribute view, then it inherits the behaviour of the attributes from attribute view. On the other hand, if you create an analytic view for one specific use case in which you want a particular attribute to behave differently than how it does in the attribute view to which it belongs, you can declare it as a private attribute. Measures: Data that can be quantified and calculated (known as key figures in SAP BW). Attribute views are known as Dimensions in SAP BW.
Packages in SAP HANA: This is a procedure for grouping together the related information objects in a structured way.