Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58968

Add "exclusive" boolean flag to the _id field of the bucket document generated using $bucketAuto

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 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.

            Assignee:
            edwin.zhou@mongodb.com Edwin Zhou
            Reporter:
            vincent.palodichuk@primetherapeutics.com Vincent Palodichuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: