Skip to content

DOCSP-1173 Updated according to reviewer's suggestions. #3005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions source/reference/operator/aggregation/bucketAuto.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ Definition
Behavior
--------

The number of buckets in the output may be less than the specified
number of buckets, for example:
There may be less than the specified number of buckets if:

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

The even distribution of documents across buckets depends on the
cardinality, or the number of unique values, of the ``groupBy`` field. If
the cardinality is not high enough, the $bucketAuto stage may not evenly
distribute the results across buckets.

Granularity
~~~~~~~~~~~

Expand Down