Data Compression
Reducing the storage size of archived data with algorithms to lower cost; in SAP nearline storage it keeps cold data economical to retain.
What Is Data Compression?
Compression Encodes Data Using Fewer Bits Than The Original. Archives Use Lossless Compression Only, So Every Byte Can Be Restored Exactly As It Was Stored. Common Algorithms Include Deflate (Used By Gzip), Zstandard, Snappy, And Lz4.
Results Depend On The Data. Text, Logs, And Structured Records Compress Well. Media Files Such As Jpeg Images, Mp4 Video, And Zip Archives Are Already Compressed And Barely Shrink.
Columnar Formats Compress Especially Well. Apache Parquet And Columnar Databases Store Each Column’S Values Together. Values In One Column Tend To Be Similar, So Techniques Such As Dictionary Encoding And Run-Length Encoding Work Efficiently.
Key Points
- Lossless Only. Archived Records Must Be Restored Bit For Bit, So Lossy Compression Is Never Used For Records.
- Columnar Formats Compress Better. Storing Similar Values Together Gives Algorithms More Repetition To Work With.
- Cpu Against Storage. Stronger Compression Saves Space But Costs More Processing Time To Compress And Read.
- Compress Before Encrypting. Encrypted Data Looks Random And Does Not Compress Well.
- Pair With Deduplication. Deduplication Removes Duplicate Copies, And Compression Shrinks What Remains.
Compression In Archiving And Sap Nearline Storage
In Sap Bw, Nearline Storage Built On Sap Iq Uses Columnar Compression To Hold Cold Data At A Fraction Of Its In-Memory Footprint. The Data Stays Reportable Without Consuming Hana Memory. That Is The Main Reason Nearline Storage Became A Standard Part Of Bw Volume Management.
General-Purpose Archives Benefit In The Same Way. Compression Lowers Storage And Transfer Costs. In Columnar Formats It Also Speeds Up Queries, Because Less Data Has To Be Read From Disk. Apache Parquet Combines Both Benefits With An Open, Vendor-Neutral Format.
Data Compression Vs. Related Concepts
Deduplication
Deduplication Removes Repeated Copies Of The Same Data. Compression Shrinks Each Stored Copy.
Encryption
Encryption Protects Data From Unauthorized Reading. It Does Not Reduce Size And Can Prevent Compression If Applied First.
Storage Tiering
Storage Tiering Moves Data To Cheaper Media. Compression Reduces How Much Media The Data Needs.
Further Reading
- Why Apache Parquet Is The Preferred Format For Enterprise Data Archiving: How Columnar Compression Lowers Cost And Speeds Up Archive Queries.
- Sap Bw Archiving Strategy: The Complete Guide To Dap, Nls, And Adk-Based Archiving: How Nearline Storage Uses Compression To Keep Cold Bw Data Reportable.
See Also
Ready to put this into practice?
See how Archon helps organizations with compliant archiving and legacy decommissioning.