Note
This parameter is available starting with V4.2.1 BP2. The original parameter name was tableapi_transport_compress_func.
Description
kv_transport_compress_func specifies the compression algorithm used to compress the query results of an OBKV-Table.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | CAPACITY |
| Default value | none |
| Value range | NoteStarting with V4.2.1, the value zlib_1.0 can be viewed only. |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
You must use this parameter in conjunction with the kv_transport_compress_threshold parameter. For more information about the kv_transport_compress_threshold parameter, see kv_transport_compress_threshold.
Examples
Set the compression algorithm used to compress the query results of an OBKV-Table to lz4_1.0.
obclient> ALTER SYSTEM SET kv_transport_compress_func = 'lz4_1.0';