Note
- For V4.4.x versions, this parameter was introduced starting from V4.4.2.
- For V4.3.5 versions, this parameter was introduced starting from V4.3.5 BP4.
Description
mlog_trim_interval specifies the interval at which the background automatic trim task for a materialized view log (mlog) is scheduled.
Privilege requirements
Query the parameter
Both the
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
You can set this system variable in the
sysor user tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 1d |
| Value range | [5s, 30d] |
| 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
Set the time interval for MLog background pruning tasks to
5s.obclient> ALTER SYSTEM SET mlog_trim_interval = '5s';Set the interval for the mlog background trimming task to
1d.obclient> ALTER SYSTEM SET mlog_trim_interval = '1d';