首页 > 解决方案 > cosmos db 索引策略中的空包含路径

问题描述

我有一个具有以下索引策略的 cosmos DB

{
    "indexingMode": "consistent",
    "automatic": true,
    "includedPaths": [],
    "excludedPaths": [
        {
            "path": "/*"
        },
        {
            "path": "/\"_etag\"/?"
        }
    ]
}

如您所见,includedPaths它是空的,但我很惊讶地看到索引大小是62.6GB。我想知道当没有要索引的内容时(根据索引策略),索引中的所有数据是什么。

这是其他数据库指标数据大小-> 1.5TB

索引大小 -> 62.6GB

文档数 -> 746M

标签: databaseazurenosqlcloudazure-cosmosdb

解决方案


推荐阅读