Change Persisted View Settings
From the Views Details screen, you can change the settings to persist your data to ensure that you choose the best run mode according to your business case. You can also include runtime settings to be used with transport packages.
When persisting a view, an SQL procedure is called in SAP HANA. In case of high data volume to persist, processing the SQL procedure can impact the memory consumption and the system resources. In the details screen of the view under Settings, you can optimize the run mode depending on your needs.
Run Mode
-
Performance-Optimized (Recommended): This is the recommended mode to run the task. SQL queries are processed directly in-memory. No intermediate result is stored on the disk to ensure a quicker data access and data consumption. However, this mode consumes memory resources and if your data model is very complex, it can result in an out of memory and the task failed.
-
Memory-Optimized: The mode uses an enhancement of the SAP HANA Execution Engine, which stores intermediate results of SQL statements on the disk. Memory consumption of SQL statements memory usage peaks may be reduced because intermediate results are not stored in-memory but are saved on the disk. It results in slower runtime, though. For example, you can use it when you get an out of memory error while running the task, as alternative to manual partitioning. Regardless, there is no guaranteed that the spill to dist will keep your system from exceeding memory limits. For more information, see Memory Management With Spill To Disk.
Include Runtime Settings in Transport Packages
Transport runtime settings for a persisted view.
-
Include Run Mode for persisted views.
-
Included partitions created for persisted views.