SAP ASE lets you create databases and compress columns that use the text, image, unitext, in-row, and java large object (LOB) datatypes.
LOB columns can contain up to 2,147,483,647 (or 231 -1) bytes of character or binary data. LOB values are stored on a text page chain. Only text pages are compressed.
SAP ASE automatically determines the algorithm to use when you select the compression level. Levels 1 – 9 use the ZLib technique, and levels 100 and 101 use the FastLZ technique.
Generally, the higher the compression level, the more the LOB is compressed. However, the amount of compression depends on the content of the LOB. The higher the compression level, the more CPU-intensive the process, so a compression_level of 9 provides the best compression ratio, but also the heaviest CPU usage.
You can combine table-level and column-level compression.
Compression Level |
No Column Compression |
Column is not compressed |
Column uses compression_level Scale |
---|---|---|---|
No table-level compression |
Uncompressed |
Uncompressed |
Column-level compression |
lob_compression = 0 |
Uncompressed |
Uncompressed |
Column-level compression |
lob_compression is the same as the table-level compression |
Column level compression |
Uncompressed |
Column-level compression |
The page layout is altered when LOB columns are compressed.