0% found this document useful (0 votes)
398 views

How To Free-Up Memory in HANA

The document discusses how to free up memory in SAP HANA. It explains that tables can be unloaded from memory manually using the "Unload" option in HANA Studio. Queries on unloaded tables will partially or fully reload them as needed. Memory can also be freed up by triggering a "delta merge" operation on column tables. Screenshots demonstrate unloading and reloading a table to change memory usage.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
398 views

How To Free-Up Memory in HANA

The document discusses how to free up memory in SAP HANA. It explains that tables can be unloaded from memory manually using the "Unload" option in HANA Studio. Queries on unloaded tables will partially or fully reload them as needed. Memory can also be freed up by triggering a "delta merge" operation on column tables. Screenshots demonstrate unloading and reloading a table to change memory usage.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

How to free-up the Memory in SAP HANA?

Prepared by Debajit Banerjee

Under normal circumstances, the SAP HANA database manages the loading and unloading of tables into and
from memory independently. Actually, the main aim of SAP HANA database is to keep all relevant data in memory.
But, one can manually load and unload individual tables if necessary. How?
....Its simple, and it can be done from HANA Studio itself.
Select the table by right click and choose the option Unload
And later, manually load the table into memory again, if needed.
Moreover, if somebody fires the query associated to the same unloaded table, SAP HANA will pick & load the same table
into memory FULL or PARTIALLY, purely depending upon the executed query.
Again, if one needs to free up memory, he/she can manually trigger the delta merge operation for a column table
manually in SAP HANA Studio. The delta merge operation is related to the memory management concept of the column
store, i.e., the part of the SAP HANA Database that manages data organized in columns in memory.
So, options are as follows:
Unload Free up memory by unloading table from memory
Load Loading the table into memory
Merge Triggering delta merge operation for a column table
Here are the screenshots for clear understanding of table unloading from and loading into memory:
In this example, we will unload a table, EKKN from memory and then reloaded into memory.

http://debajitb.wix.com/debajitbanerjee | http://debajitb.wix.com/debajitbanerjee/apps/blog

How to free-up the Memory in SAP HANA?

Prepared by Debajit Banerjee

http://debajitb.wix.com/debajitbanerjee | http://debajitb.wix.com/debajitbanerjee/apps/blog

How to free-up the Memory in SAP HANA?

Prepared by Debajit Banerjee

It actually triggers the equivalent statement SELECT TOP 1000 * FROM schema_name.table_name at the backend.
So, here is the result.

And this triggers the change in the memory also. The same table has been PARTIALLY loaded into memory.

http://debajitb.wix.com/debajitbanerjee | http://debajitb.wix.com/debajitbanerjee/apps/blog

How to free-up the Memory in SAP HANA?

Prepared by Debajit Banerjee

Later, the corresponding table has been FULLY loaded into Memory.

**** END OF DOCUMENT ****


http://debajitb.wix.com/debajitbanerjee | http://debajitb.wix.com/debajitbanerjee/apps/blog

You might also like