🚀 免费试用 Zilliz Cloud,完全托管的 Milvus,体验 10 倍的性能提升!立即试用>

milvus-logo
LFAI

Tables 表中的字段

  • Engineering
December 31, 2019
milvus

在上一篇博客中,我们提到了如何使用 MySQL 或 SQLite 查看元数据。本文主要详细介绍元数据表中的字段。

Tables 表中的字段

以 SQLite 为例。以下结果来自 0.5.0 版。0.6.0 中添加了一些字段,稍后将对其进行介绍。Tables 中有一行指定了一个 512 维的向量表,其名称为 <codetable_1 。表创建时,index_file_size 为 1024 MB,engine_type 为 1 (FLAT),nlist 为 16384,metric_type 为 1 (欧氏距离 L2)。id 是表的唯一标识符。state 是表的状态,0 表示正常状态。created_on 是创建时间。flag 是内部使用的保留标志。

1-image-1.png 1-image-1.png

下表列出了Tables 中的字段类型和说明。

2-field-types-descriptions-milvus-metadata.png 2-field-types-descriptions-milvus-metadata.png

0.6.0 中启用了表分区,并增加了一些新字段,包括owner_tablepartition_tagversion 。一个向量表table_1 有一个名为table_1_p1 的分区,它也是一个向量表。partition_name 对应table_id 。分区表中的字段继承自owner table ,所有者表字段指定所有者表的名称,partition_tag 字段指定分区的标记。

3-image-2.png 3-image-2.png

下表列出了 0.6.0 中的新字段:

4-new-fields-milvus-0.6.0.png 4-new-fields-milvus-0.6.0.png

TableFiles 表中的字段

下面的示例包含两个文件,它们都属于table_1 向量表。第一个文件的索引类型 (engine_type) 为 1 (FLAT);文件状态 (file_type) 为 7 (原始文件的备份);file_size 为 411200113 字节;向量行数为 200,000 行。第二个文件的索引类型是 2 (IVFLAT);文件状态是 3(索引文件)。第二个文件实际上是第一个文件的索引。我们将在以后的文章中介绍更多信息。

5-image-3.png 5-image-3.png

下表列出了TableFiles 的字段和说明:

6-field-types-descriptions-tablefile.png 6-field-types-descriptions-tablefile.png

下一篇文章

即将发表的文章将向你展示如何在 Milvus 中使用 SQLite 管理元数据。敬请期待!

如有任何问题,欢迎加入我们的Slack 频道,或在软件仓库中提交问题。

GitHub 仓库: https://github.com/milvus-io/milvus

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started

Like the article? Spread the word

扩展阅读