
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
Scenario 1 : Select records from Database
Scenario 2 : Update records in Database
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
12 | |
12 | |
11 | |
10 | |
9 | |
9 | |
8 | |
7 | |
7 |