Skip to content

Commit 3a3f743

Browse files
Irene SmithIrene Smith
authored andcommitted
DOCSP-1173 Updated according to reviewer's suggestions.
1 parent 3cb0c21 commit 3a3f743

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/reference/operator/aggregation/bucketAuto.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ Definition
5050
Behavior
5151
--------
5252

53-
The number of buckets in the output may be less than the specified
54-
number of buckets, for example:
53+
There may be less than the specified number of buckets if:
5554

5655
- The number of input documents is less than the specified number of
5756
buckets.
@@ -69,6 +68,11 @@ If the ``groupBy`` expression refers to an array or document, the
6968
values are arranged using the same ordering as in :pipeline:`$sort`
7069
before determining the bucket boundaries.
7170

71+
The even distribution of documents across buckets depends on the
72+
cardinality, or the number of unique values, of the ``groupBy`` field. If
73+
the cardinality is not high enough, the $bucketAuto stage may not evenly
74+
distribute the results across buckets.
75+
7276
Granularity
7377
~~~~~~~~~~~
7478

0 commit comments

Comments
 (0)