azure cosmosDB 3.6 在索引超过最大数量的字段排序操作上的问题
Issues with azure cosmosDB 3.6 on field sort operation with index exceeded maximum number
使用启用了 mongodb API 的 Azure cosmosDB 版本 3.6 出现问题弹出窗口,基本上我们想对集合中的特定字段进行排序,但出现错误:
Error: error: {
"ok" : 0,
"errmsg" : "Error=2, Details='Microsoft.Azure.Cosmos.Query.Core.Monads.ExceptionWithStackTraceException: TryCatch resulted in an exception. ---> Microsoft.Azure.Cosmos.Query.Core.Monads.ExceptionWithStackTraceException: TryCatch resulted in an exception. ---> Microsoft.Azure.Cosmos.Query.Core.Monads.ExceptionWithStackTraceException: TryCatch resulted in an exception. ... ...
"code" : 2,
"codeName" : "BadValue"
}
然而,如果给定索引,我们发现它在排序操作中与其他字段顺利进行,但是当我们尝试将索引添加到该特定字段的当前集合时,这可能是一个更简单的修复方法弹出窗口给我们带来了死胡同。
{
"ok" : 0.0,
"errmsg" : "Exceeded maximum number of indexes",
"code" : 67,
"codeName" : "CannotCreateIndex"
}
之前在 3.2 版上使用带有 MongoDB API 的 cosmosdb 确实令人困惑,我们得到了微软团队的官方支持,说在 3.2 版上索引是自动创建的,因此我们有这样的问题 indexes exceeds the limit
相似的问题。但是应该在 3.6 版中消失,这就是我们决定使用 cosmosDB 将所有现有系统迁移到 Azure 云的原因。
在我们当前尝试执行 createIndex
操作的这个特定集合中 只有 17 个现有索引 ,对 [=14 的这个限制是什么感到困惑=]错误。
您似乎达到了最大索引限制的软限制,您可以提交支持请求以增加帐户的最大索引限制。
使用启用了 mongodb API 的 Azure cosmosDB 版本 3.6 出现问题弹出窗口,基本上我们想对集合中的特定字段进行排序,但出现错误:
Error: error: {
"ok" : 0,
"errmsg" : "Error=2, Details='Microsoft.Azure.Cosmos.Query.Core.Monads.ExceptionWithStackTraceException: TryCatch resulted in an exception. ---> Microsoft.Azure.Cosmos.Query.Core.Monads.ExceptionWithStackTraceException: TryCatch resulted in an exception. ---> Microsoft.Azure.Cosmos.Query.Core.Monads.ExceptionWithStackTraceException: TryCatch resulted in an exception. ... ...
"code" : 2,
"codeName" : "BadValue"
}
然而,如果给定索引,我们发现它在排序操作中与其他字段顺利进行,但是当我们尝试将索引添加到该特定字段的当前集合时,这可能是一个更简单的修复方法弹出窗口给我们带来了死胡同。
{
"ok" : 0.0,
"errmsg" : "Exceeded maximum number of indexes",
"code" : 67,
"codeName" : "CannotCreateIndex"
}
之前在 3.2 版上使用带有 MongoDB API 的 cosmosdb 确实令人困惑,我们得到了微软团队的官方支持,说在 3.2 版上索引是自动创建的,因此我们有这样的问题 indexes exceeds the limit
相似的问题。但是应该在 3.6 版中消失,这就是我们决定使用 cosmosDB 将所有现有系统迁移到 Azure 云的原因。
在我们当前尝试执行 createIndex
操作的这个特定集合中 只有 17 个现有索引 ,对 [=14 的这个限制是什么感到困惑=]错误。
您似乎达到了最大索引限制的软限制,您可以提交支持请求以增加帐户的最大索引限制。