Note
This view is available starting with V4.4.1.
Purpose
This view displays the basic information and real-time status of HNSW vector indexes on the current OBServer node for the current tenant.
Columns
| Column | Data type | Nullable | Description | Information type |
|---|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the node where the replica is located. | Basic information |
| SVR_PORT | bigint(20) | NO | The RPC_PORT of the node where the replica is located. | Basic information |
| TENANT_ID | bigint(20) | NO | The tenant ID
|
Basic information |
| DATA_TABLE_ID | bigint(20) | NO | The ID of the data table. | Basic information |
| DATA_TABLET_ID | bigint(20) | NO | The ID of the partition. | Basic information |
| TABLE_NAME | varchar(256) | NO | The name of the table. | Basic information |
| INDEX_NAME | varchar(256) | NO | The name of the index. | Index information |
| ROLE | varchar(8) | NO | The role*:
|
Basic information |
| INDEX_PARAM | longtext | NO | The index parameters. | Index information |
| MEMORY_USED | bigint(20) | NO | The memory used. | Index information |
| MEMORY_HOLD | bigint(20) | NO | The memory occupied. | Index information |
| SNAP_MEM_HOLD | bigint(20) | NO | The snapshot memory occupied. | Index information |
| INCR_MEM_HOLD | bigint(20) | NO | The incremental memory occupied. | Index information |
| SNAP_INDEX_CNT | bigint(20) | NO | The number of snapshot vectors. | Index information |
| INCR_INDEX_CNT | bigint(20) | NO | The number of incremental vectors. | Index information |
| SNAP_DATA_SCN | bigint(20) unsigned | NO | The snapshot data version. | Index information |
| INCR_DATA_SCN | bigint(20) unsigned | NO | The incremental data version. | Index information |
| LAST_SUCC_SYNC_TIME | datetime | NO | The last successful synchronization time. | Synchronization information |
| LAST_FAILED_SYNC_TIME | datetime | NO | The last failed synchronization time. | Synchronization information |
| LAST_FAILED_CODE | bigint(20) | NO | The error code of the last failed synchronization. | Synchronization information |
Sample query
Query the real-time status of HNSW vector indexes on all OBServer nodes for the current user tenant.
SELECT * FROM oceanbase.V$OB_HNSW_INDEX_INFO;
The query result is as follows:
*************************** 1. row ***************************
SVR_IP: 11.xxx.xx.xx
SVR_PORT: 30510
TENANT_ID: 1004
DATA_TABLE_ID: 500005
DATA_TABLET_ID: 200001
TABLE_NAME: t1
INDEX_NAME: idx1
ROLE: FOLLOWER
INDEX_PARAM: type=VIAT_HNSW,lib=VIAL_VSAG,dist_algorithm=VIDA_L2,dim=3,m=16,ef_construction=200,ef_search=64,nlist=0,sample_per_nlist=0,extra_info_max_size=0,extra_info_actual_size=0,refine_type=0,bq_bits_query=0,refine_k=0.000000,bq_use_fht=0,
MEMORY_USED: 282492
MEMORY_HOLD: 557056
INCR_MEM_HOLD: 0
SNAP_MEM_HOLD: 557056
INCR_INDEX_CNT: 0
SNAP_INDEX_CNT: 1000
INCR_DATA_SCN: 0
SNAP_DATA_SCN: 0
LAST_SUCC_SYNC_TIME: 2025-07-28 19:29:47.352441
LAST_FAILED_SYNC_TIME: NULL
LAST_FAILED_CODE: 0
1 row in set