on 12-03-2015 2:02 PM
Dear Experts,
After removing most of the records from the table, I need to release HWM.
What tools in HANA can do it?
For example, in oracle I can use reorganization via brtools or use command "ALTER TABLE <table_name> SHRINK SPACE [COMPACT] [CASCADE];"
Thanks for your attention, I look forward to your comments.
Best Regards
Hi,
for row store you have to follow the
1813245 - SAP HANA DB Row store reorganization
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's correct up to SAP HANA SPS 08. Starting with SPS 09 can can reorganize individual row store tables using:
ALTER TABLE "<table_name>" RECLAIM DATA SPACE
This is e.g. helpful to resolve issues caused by the existence of multiple table containers (see SAP Note 2000002 -> "Bad performance on specific row store table, unexpected UNION ALL in execution plan").
It's like for all DDL statements: They acquire a table lock and open changes can be escalated to table level locks while the DDL statement is waiting until the open changes are finished. Setting the lock timeout to a small value for the executing transaction can reduce the impact:
SET TRANSACTION LOCK WAIT TIMEOUT <ms>
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.