Note
For V3.1.4, this parameter is available starting with V3.1.4.
Description
enable_kv_ttl specifies whether to enable the TTL background task. This parameter is effective only for periodic TTL tasks. It does not affect user-controlled commands.
Notice
The TTL feature is only applicable to the OceanBase KV scenario. It is disabled in the SQL scenario to avoid unexpected data deletion issues.
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
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | False |
| Value range |
|
| 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. |
Examples
Disable the TTL background task.
obclient> ALTER SYSTEM SET enable_kv_ttl= false;