on 02-17-2014 7:10 AM
Hi All,
How does Delta Merge affect the disk space occupied by a table. I have observed that upon Delta Merge the disk space occupied by a table comes down but am not quite sure about the reasons for the same.
Besides, does HANA perform any compression/ encoding while storing data on the disk as well or are these only for the in-memory section.
Pl advise. Thanks.
Hi Saurabh,
When records are present in Delta, there is no compression but when Delta Merge is performed and records are moved to main storage, compression happens
Data is stored in compressed form in Disk also - same as in RAM
Regards,
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh,
Data is compressed in RAM using compression techniques like Dictionary Encoding, Run Length Coding and then same compressed data is stored in disk too
I guess as once Delta Merge is completed, original delta store is deleted so that will cause memory reduction
Check the below document on Delta Merge:
You can learn more about these techniques from OpenHPI course(it's free):
Course: In-Memory Data Management
Regards,
Vivek
Hi Saurabh,
As far as I know,
During Delta Merge operation, new main store and new delta store is created
All the data from earlier main store and delta store is copied to new main store and is compressed
Lets say we had Main Store 1 and Delta Store 1 with size 100 MB and 50 MB => Total Size = 150 MB
During Merge, Main Store 2 and Delta Store 2 will be created
Uncommitted transactions from Delta 1 are copied to Delta 2
Data from Main Store 1 will be copied to Main Store 2 => 100 MB
and then data from Delta Store 1 will be copied to Main Store 2 and at the same time this data will undergo compression - lets say the data was compressed from 50 MB to 25 MB
So the new Main Store 2 has total size of => 125 MB
Thus after merge less memory is there
Regards,
Vivek
Hai Saurabh,
As Vivek is mentioning,
The data in "Delta" is uncompressed. Hence the Total Disk size ( Main + Delta) is more .
After merge happens and transfers the data from Delta to Main now all the data is in compressed format and hence reduces the size taken on the disk.
Regards,
Krishna Tangudu
Hi,
A valuable discussion above ! After reading this I have following questions.
Kindly clarify these..
Thanks & Regards,
Monissha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.