Manual compression of a table in SAP HANA



It is also possible to compress a table in SAP HANA system manually by executing the following SQL statement.

UPDATE "table_name" WITH PARAMETERS ('OPTIMIZE_COMPRESSION' = 'YES')

This results in deciding whether a compression is required or an existing compression can be optimized. In this scenario, HANA system uses most suitable compression algorithm.


When you run the above SQL command, compression status remains the same. You can also force the database to reevaluate compression using the following SQL status 

UPDATE "AA_HANA11"."SHOP_FACTS" WITH PARAMETERS ('OPTIMIZE_COMPRESSION' = 'FORCE')




Advertisements