External Collection 限制
公测版因为 Zilliz Cloud 不会为 External Collection 存储原始数据,而只维护元数据以及到外部数据源的映射关系,因此 External Collection 是只读的。您无法从 Zilliz Cloud 侧执行写入或维护操作,包括 insert、upsert、delete、import、flush 和 compact。
与 Managed Collection 相比,External Collection 具有以下限制:
-
您需要使用 API 密钥访问 External Collection。
-
Zilliz Cloud 不会强制校验主键唯一性,且您无法配置主键或 AutoID。
-
您无法启用 Dynamic field。
-
您不能使用 Partition,因此也不支持 Partition Key 和 。
-
要使外部数据可用于查询,您必须先创建索引,然后手动触发
RefreshExternalCollection,以便 Zilliz Cloud 为数据构建元数据和索引。 -
External Collection 当前不支持备份恢复和数据迁移。
-
仅支持在按需计算场景下的 Database 中创建 External Collection。即将支持在 Serving Dedicated 集群中创建 External Collection。
下表详细比较了 External Collection 和 Managed Collection 所支持的操作。
Managed Collection (Serving 集群) | External Collection (按需计算场景下的 Database) | Managed Collection (按需计算场景下的 Database) | ||
|---|---|---|---|---|
Collection 管理 | CreateCollection | |||
DropCollection | ||||
DescribeCollection | ||||
RenameCollection | ||||
Dynamic Field | ||||
Primary Key | ||||
Auto ID | ||||
TTL | ||||
Nullable/Default Value | ||||
Loaded Entities | ||||
Allow Insert Auto ID | ||||
MMAP | ||||
Timezone | ||||
Schema | AddField | |||
AlterField | ||||
Partition | CreatePartition | |||
DropPartition | ||||
Partition Key | ||||
数据写入 | Insert | |||
Delete | ||||
Upsert | ||||
BulkInsert / Import | ||||
Flush | ||||
Shard | ||||
Truncate | ||||
数据同步 | RefreshExternalCollection | — | — | |
GetRefreshProgress | — | — | ||
ListRefreshJobs | — | — | ||
Index | CreateIndex | |||
DropIndex | ||||
DescribeIndex | ||||
Load/Release | LoadCollection | |||
ReleaseCollection | ||||
Search/Query | Search | |||
Query | ||||
HybridSearch | ||||
Functions | ||||
Full-text Search/Text Match | ||||
运维 | Manual Compaction | |||
Clustering Key | ||||
Backup & restore | ||||
Migration | ||||