Skip to main content
Version: V1.4.0

Vector index memory management

This topic describes how to estimate and manage the memory usage of all types of vector indexes in seekdb.

Configure vector index memory​

In seekdb V1.4.0, use vector_memory_limit to configure the memory limit of the vector module. The default value is 0M, which means 50% of memory_budget. For example:

ALTER SYSTEM SET vector_memory_limit = '4G';

For information about the instance memory budget and related configuration items, see Configure memory for seekdb.

Query index memory estimation and actual usage​

You can use the DBMS_VECTOR system package to estimate the index memory usage:

The vector index memory estimation returns two pieces of information: the minimum memory configuration required to create the vector index, and the actual memory usage after the HNSW_SQ and IVF indexes are created.

tip

For memory-sparse indexes, the IDX_TYPE parameter must be specified as SINDI (case-insensitive). Otherwise, the memory estimation cannot be performed.

Query oceanbase.V$OB_VECTOR_MEMORY for detailed information about actual memory usage:

SELECT * FROM oceanbase.V$OB_VECTOR_MEMORY;

References​