8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3be94b6 commit 5da6b9bCopy full SHA for 5da6b9b
CHANGELOG
@@ -1,6 +1,29 @@
1
devel
2
-----
3
4
+* added optional detail flag for db.<collection>.count()
5
+ setting the flag to `true` will make the count operation returned the per-shard
6
+ counts for the collection:
7
+
8
+ db._create("test", { numberOfShards: 10 });
9
+ for (i = 0; i < 1000; ++i) {
10
+ db.test.insert({value: i});
11
+ }
12
+ db.test.count(true);
13
14
+ {
15
+ "s100058" : 99,
16
+ "s100057" : 103,
17
+ "s100056" : 100,
18
+ "s100050" : 94,
19
+ "s100055" : 90,
20
+ "s100054" : 122,
21
+ "s100051" : 109,
22
+ "s100059" : 99,
23
+ "s100053" : 95,
24
+ "s100052" : 89
25
26
27
* added optional memory limit for AQL queries:
28
29
db._query("FOR i IN 1..100000 SORT i RETURN i", {}, { options: { memoryLimit: 100000 } });
0 commit comments