Note
For V4.5.x, this parameter is available starting with V4.5.0.
Description
vector_index_memory_saving_mode specifies whether to enable the memory-saving mode for vector indexes. Enabling this mode significantly reduces the memory consumption during the rebuild of vector indexes for partitioned tables. In environments with limited memory resources, this mode allows successful index rebuilds with less memory, preventing failures due to insufficient memory.
Based on the principles of vector indexes, rebuilds typically involve processing data from incremental segments and baseline segments. When this mode is enabled, the system releases memory at an early stage during the partition-level rebuild process, thereby reducing peak memory usage.
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 | true |
| Value range | true/false |
| 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 this parameter to true to reduce the memory required during the rebuild of vector indexes for partitioned tables.
ALTER SYSTEM SET vector_index_memory_saving_mode = true;
