Overview
This view displays the basic information and real-time status of IVF vector indexes for the current tenant across all OBServer nodes.
Columns
Field Name |
Data type |
Whether can be NULL |
Description |
Information Type |
|---|---|---|---|---|
| SVR_IP | varchar(46) | NO | Node address of the replica | Basic Information |
| SVR_PORT | bigint(20) | NO | RPC_PORT of the replica node | Basic Information |
| TENANT_ID | bigint(20) | NO | Tenant ID
|
Basic Information |
| DATA_TABLE_ID | bigint(20) | NO | Data Table ID | Basic Information |
| TABLE_NAME | varchar(512) | YES | Table name | Basic Information |
| INDEX_NAME | varchar(512) | YES | Index name | Index Information |
| INDEX_TABLE_ID | bigint(20) | NO | Index Table ID | Index Information |
| INDEX_TABLET_ID | bigint(20) | NO | Index Table Partition ID | Index Information |
| INDEX_PARAM | varchar(1024) | NO | Index parameters | Index Information |
| CACHE_TYPE | varchar(29) | NO | IVF index cache type.
|
Cache information |
| IS_INIT | varchar(5) | NO | Whether the list is initialized.
|
Cache information |
| MEMORY_USED | bigint(20) | NO | Memory Usage | Index Information |
| MEMORY_HOLD | bigint(20) | NO | Memory Usage | Index Information |
| CACHE_INFO | varchar(512) | NO | Cache attribute information in JSON format | Cache information |
Sample query
Users can query the real-time status of IVF vector indexes on all OBServer nodes within their tenant.
SELECT * FROM oceanbase.GV$OB_IVF_INDEX_INFO;
The query result is as follows:
*************************** 1. row ***************************
SVR_IP: 11.xxx.xx.xx
SVR_PORT: 30508
TENANT_ID: 1004
DATA_TABLE_ID: 500013
TABLE_NAME: t1
INDEX_NAME: idx1
INDEX_TABLE_ID: 500033
INDEX_TABLET_ID: 1152921504606846995
INDEX_PARAM: type=VIAT_IVF_PQ,lib=VIAL_OB,dist_algorithm=VIDA_L2,dim=3,m=1,ef_construction=0,ef_search=0,nlist=128,sample_per_nlist=256,extra_info_max_size=0,extra_info_actual_size=0,refine_type=0,bq_bits_query=32,refine_k=4.000000,bq_use_fht=0,nbits=8
CACHE_TYPE: IVF_PQ_CENTROID_CACHE
IS_INIT: TRUE
MEMORY_USED: 13704
MEMORY_HOLD: 32768
CACHE_INFO: {"count": 256, "nlist": 256, "capacity": 256, "cent_vec_dim": 3}
*************************** 2. row ***************************
SVR_IP: 11.xxx.xx.xx
SVR_PORT: 30508
TENANT_ID: 1004
DATA_TABLE_ID: 500013
TABLE_NAME: t1
INDEX_NAME: idx1
INDEX_TABLE_ID: 500033
INDEX_TABLET_ID: 1152921504606846995
INDEX_PARAM: type=VIAT_IVF_PQ,lib=VIAL_OB,dist_algorithm=VIDA_L2,dim=3,m=1,ef_construction=0,ef_search=0,nlist=128,sample_per_nlist=256,extra_info_max_size=0,extra_info_actual_size=0,refine_type=0,bq_bits_query=32,refine_k=4.000000,bq_use_fht=0,nbits=8
CACHE_TYPE: IVF_CENTROID_CACHE
IS_INIT: TRUE
MEMORY_USED: 12168
MEMORY_HOLD: 32768
CACHE_INFO: {"count": 128, "nlist": 128, "capacity": 128, "cent_vec_dim": 3}
2 rows in set