# vector_index_segments

包含有关 MergeTree 表的向量索引段的信息。

每一行描述一个活动数据部分中的一个向量索引段。

列:

  • database(String)- 数据库的名称。
  • table(String)- 表的名称。
  • part(String)- 数据部分的名称。
  • owner_part(String)- 向量索引段的原始所有者数据部分的名称(如果发生了变异,则此字段包含旧的数据部分名称)。
  • owner_part_id(Int32)- owner_part的ID,用于区分旧的数据部分。
  • name(String)- 向量索引的名称。
  • type(String)- 向量索引类型(例如,MSTG,IVFFLAT,HNSW)。
  • status(String)- 向量索引段的状态(SMALL_PARTPENDINGBUILDINGBUILTLOADEDERROR)。
  • total_vectors(UInt64)- 索引中向量的总数。
  • memory_usage_bytes(UInt64)- 向量索引在内存中的大小(如果加载到内存中)(以字节为单位)。
  • disk_usage_bytes(UInt64)- 向量索引在磁盘上的大小(以字节为单位)。
  • progress(UInt8)- 向量索引构建进度(从0100)。
  • elapsed(UInt64)- 向量索引构建开始后经过的时间(以秒为单位)。
  • error(String)- 向量索引构建失败的原因(如果状态为ERROR)。

示例

SELECT * FROM system.vector_index_segments
Row 1:
──────
database:           default
table:              Benchmark
part:               all_0_4882_5
owner_part:         all_0_4882_5
owner_part_id:      0
name:               Benchmark_X1E2
type:               MSTG
status:             LOADED
total_vectors:      5000000
memory_usage_bytes: 960000000
disk_usage_bytes:   15360000000
progress:           100
elapsed:            0
error:
Last Updated: Thu Jun 20 2024 02:21:41 GMT+0000