Tuning SAP HANA for Performance
With the latest patch and some Data Hub configuration changes, you can optimize performance on HANA.
HANA provides the best database performance with a large batch size for load, compose, and publish operations. Each HANA installation must run tests in their respective environment. The tests determine the configuration that achieves the best performance based on the data, processing requirements, and the amount of memory available. Specifying a larger batch size uses more memory, so you must have enough memory available to support a larger batch size. Otherwise, you begin to see java.lang.OutOfMemoryError: Java heap space exceptions.
The default batch size for all Data Hub operations is 1,000, which is based on performance testing using relational databases. The following configuration properties are available in the local.properties file to set the batch size.
- datahub.import.batch.size=1000
- datahub.composition.batch.size=1000
- datahub.publication.page.size=1000
For more information, see the available adjustments to Data Hub configuration in Performance Configuration Parameters.
Testing shows increasing the batch size results in much better performance. It is nearly a linear increase in performance as the batch size increases. It is better to have the batch size match the number of items in the operation. For example, for a load of 50K items, it is better to have the batch size set to 50K than any combination that is lower. With this configuration, HANA performance increases significantly and is faster than other relational databases.
Additional performance enhancements:
HANA should be running in column store. Keep it running by adding the following entries to your local.properties file.
hanadb.storage.columnbased=true hanadb.storage.optimized.indexes=true
Finally, do the following:
- Find out if "Turn off database logging" might be appropriate for your environment. See https://blogs.saphana.com/2013/04/07/best-practices-for-sap-hana-data-loads/

- For anything else that may be appropriate for your environment, see https://help.sap.com/saphelp_hanaplatform/helpdata/en/c1/a774b3bb571014af018d2352f0d757/content.htm
It is also important to follow all other Data Hub performance guidelines to get the best overall system performance. Refer to – Pre-Installation Planning Guide –.