Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Archana
Product and Topic Expert
Product and Topic Expert
2,313

With application logic moving closer to database, SAP HANA has achieved radical and significant performance gains. This new database architecture uses in-memory approach to significantly improve performance of database applications. The additional advantage of moving data intensive application logic closer to the database is that the amount of data transferred between application server and the database server has significantly reduced when most of the database intensive operations are running directly in the database system. To leverage the full performance benefits decision table has also been integrated in SAP HANA such that the rules are executed closer to the persistence layer where all the calculations and aggregations are handled close to the data so that only the result set is returned to application layer, thereby reducing the network traffic.

When using small amount of data, the performance differences are barely noticeable. Once the system is in production and is filled with realistic amount of data or when you test the execution with very large data volume, is when you notice real benefit of running rules in SQL format inside the database.

Here, you would see astonishing performance increase over traditional Business Rules Management products. To illustrate the impact, I would use the example of my previous blog to calculate DISCOUNT of the product based on MODEL and QUANTITY fields. In the following, performance report of rules modeling capabilities in SAP HANA would be shown. 

Let me give you hardware details that was used for the study:

SAP Product

Hardware Details

Database

Operating System

Execution details

Rules on SAP HANA

CPU: 16 Intel®Xeon®CPU @2.53 GHz clock speed with 4 core per processor Main Memory: 32GB

SAP HANA

SLES 11 SP1

HANA SP06 server and studio

Execution criteria

  • Size Of Decision Table - 10000 rows
  • Size of Database Table range - 100000, 300000, 500000, 700000, 900000, 1000000
  • Timing Analysis Level - Uniform Case Execution Time (UCET) This means that all the rows of the database table matches with the one or more rows of the decision table

Scenario 1 : Select records from Database

  • For Rules on HANA, Decision table has Parameter as Action i.e. the records are selected from the database tables based on the decision table

Scenario 2 : Update records in Database

  • For Rules on HANA, Decision table has database table column as Action i.e. the records are updated in the database tables based on the decision table

Below you can see the time taken for selecting and updating records from database rules using Rules on SAP HANA

    Figure 8.1 : Graph showing the time taken to Select the database rows based on rules in decision table

  

      Figure 8.2 : Table showing the time taken (in seconds) to Select rows from database tables based on the rules

      

          Figure 8.3 : Graph showing the time taken to Update records in the database based on rules in decision table

          

            Figure 8.4 : Table showing the time taken (in seconds) to Update records in the database based on the rules

As you can see - with increase in the database record - there has been relative performance improvement for Select and Update scenario. To summarize, Business Rules on SAP HANA has brought the data intensive rules execution closer to the database which has caused tremendous performance impovements with many folds. Thus, decision making - on high volume and continuously changing data - is made faster, better, consistent and transparent with use of Business Rules in SAP HANA.

5 Comments