Note
This view is available starting with V4.4.1.
Purpose
This view displays the basic information and real-time status of IVF vector indexes in the current tenant on the current OBServer node.
Columns
| Column | Data Type | Nullable | Description | Information Type |
|---|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the node where the replica resides. | Basic information |
| SVR_PORT | bigint(20) | NO | The RPC_PORT of the node where the replica resides. | 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 |
| TABLE_NAME | varchar(256) | NO | The name of the table. | Basic information |
| INDEX_NAME | varchar(256) | NO | The name of the index. | Index information |
| INDEX_TABLE_ID | bigint(20) | NO | The ID of the index table. | Index information |
| INDEX_TABLET_ID | bigint(20) | NO | The ID of the partition of the index table. | Index information |
| INDEX_PARAM | varchar(1024) | NO | The index parameters. | Index information |
| MEMORY_USED | bigint(20) | NO | The memory used. | Index information |
| MEMORY_HOLD | bigint(20) | NO | The occupied memory. | Index information |
| CACHE_TYPE | varchar(29) | NO | The cache type of the IVF index
|
Cache information |
| IS_INIT | varchar(5) | NO | Indicates whether the cache is initialized.
|
Cache information |
| CACHE_INFO | varchar(512) | NO | The cache attributes in JSON format. | Cache information |
Sample query
Query the real-time status of IVF vector indexes in the current tenant on the current OBServer node.
SELECT * FROM oceanbase.V$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