我在windows7本地数据库中有127k文件,如果我做db.coll.distinct()它会立即返回。
当我在CosmosDB上做同样的事情时,它返回:
globaldb:PRIMARY> db.ross3.distinct("region");
2018-03-29T19:25:30.010-0400 E QUERY [thread1] Error: distinct failed: {
"_t" : "OKMongoResponse",
"ok" : 0,
"code" : 16500,
"errmsg" : "Request timed out.\r\nActivityId: 5d48dde5-0000-0000-0000-000000000000, Microsoft.Azure.Documents.Common/1.21.
0",
"$err" : "Request timed out.\r\nActivityId: 5d48dde5-0000-0000-0000-000000000000, Microsoft.Azure.Documents.Common/1.21.0.
} :
DBCollection.prototype.distinct@src/mongo/shell/collection.js:1745:1
@(shell):1:1