Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure cosmosdb 使用Mongo API的CosmoDB上的请求超时_Azure Cosmosdb_Azure Cosmosdb Mongoapi - Fatal编程技术网

Azure cosmosdb 使用Mongo API的CosmoDB上的请求超时

Azure cosmosdb 使用Mongo API的CosmoDB上的请求超时,azure-cosmosdb,azure-cosmosdb-mongoapi,Azure Cosmosdb,Azure Cosmosdb Mongoapi,我想用MongoAPI在我的cosmoDB实例上运行一个非常简单的mongo查询(使用Robo3T作为mongo客户端) db.getCollection('events').aggregate( [ { $match: {customer: "printabled"}}, /*{ $count: "PEZZI_INC" }*/ { $group: { _id: null, /*_id: { day: { $dayOfMonth:

我想用MongoAPI在我的cosmoDB实例上运行一个非常简单的mongo查询(使用Robo3T作为mongo客户端)

db.getCollection('events').aggregate(
    [
    { $match: {customer: "printabled"}},
    /*{ $count: "PEZZI_INC" }*/
    { $group: {
        _id: null,
        /*_id: { day: { $dayOfMonth: "$start_time"}},*/
        totalCOUNTTEMP:{
            $sum:"$AMBIENT_TEMPERATURE"
            }
      }
    }
    ]
);
但是我得到了以下错误

如果链接不起作用,这里是文本错误

Assert: command failed: {
    "_t" : "OKMongoResponse",
    "ok" : 0,
    "code" : 50,
    "errmsg" : "Request timed out.\r\nActivityId: c9fb8aa0-0000-0000-0000-000000000000, Microsoft.Azure.Documents.Common/1.22.0.0",
    "$err" : "Request timed out.\r\nActivityId: c9fb8aa0-0000-0000-0000-000000000000, Microsoft.Azure.Documents.Common/1.22.0.0"
} : aggregate failed
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:16:14
assert.commandWorked@src/mongo/shell/assert.js:370:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
@(shell):1:1

您是否尝试运行getLastRequestStatistics以查看查询使用了多少RU/s?你是如何解决这个问题的?这与RU无关,如果你想使用太多RU,错误消息会说“请求速率太大”