-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.2.8
-
Component/s: None
-
None
Right now the $bucketAuto aggregation operator produces a document whose _id field contains the inclusive min and (sometimes) exclusive max values of the bucket.
I noted that the max is sometimes exclusive as it is inclusive for the the last bucket that is generated.
If we have thousands of buckets, in order to determine which one is inclusive, we have to sort the buckets by their _id and that can take time. To avoid having to do the sort, we are asking that a flag of some kind be included to indicate if the max value is inclusive or exclusive.
Thank you.