【问题标题】:DocumentDB simple query times out with code 11601DocumentDB 简单查询超时,代码为 11601
【发布时间】:2019-10-20 09:57:47
【问题描述】:

以下查询在 mongodb 3.6 中完美运行 但在 documentdb 中它会引发错误。

db.house.count({'data.foo.d':/2019-05/})

connecting to: docdb.xxxxxxxxxxx.xxxxxx.int:27017/dbname
2019-06-04T20:39:14.339+0000 E QUERY    [thread1] Error: count failed: { "ok" : 0, "errmsg" : "operation was interrupted", "code" : 11601 } :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBQuery.prototype.count@src/mongo/shell/query.js:370:11
DBCollection.prototype.count@src/mongo/shell/collection.js:1713:12
@(shell):1:1```

【问题讨论】:

    标签: aws-documentdb-mongoapi aws-documentdb


    【解决方案1】:

    目前,AWS DocumentDb 查询超时被硬编码为 2 小时。

    【讨论】:

      【解决方案2】:

      我建议对此进行解释。您似乎正在达到 DocumentDB 2 小时查询超时。看看你是否可以建立一个可用于计数查询的索引。

      【讨论】:

      • 你不能在 count() 上运行解释。
      猜你喜欢
      • 1970-01-01
      • 2016-08-03
      • 2011-02-27
      • 1970-01-01
      • 2017-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多