Note
This parameter is available starting with V4.3.3.
Description
ob_encoding_granularity specifies the maximum number of rows that can be encoded in a microblock.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 65536 |
| Value range | [8192, 1048576] |
| 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
In a scenario where there are few updates in an AP business, if skip index cannot be used to accelerate filtering or microblock reuse is difficult, resulting in poor compaction performance, you can appropriately reduce this parameter to improve performance.
Examples
Set the maximum number of rows that can be encoded in a microblock to 8192.
obclient> ALTER SYSTEM SET ob_encoding_granularity=8192;
