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

Allow collMod to change time-series bucket granularity

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 5.0.0-rc1, 5.1.0-rc0
    • None
    • None
    • v5.0
    • Execution Team 2021-05-31
    • 49

    Description

      The collMod command will allow setting or confirming the granularity of a time-series collection:

      	{ collMod: "ts", timeseries: { granularity: "minutes" } }
      

      The granularity may only change from "seconds" to "minutes" or from "minutes" to "hours", and will update the stored granularity and bucketMaxTimespanSeconds, as well as update the view definition of the time-series collection.

      Attachments

        Activity

          People

            dan.larkin-york@mongodb.com Dan Larkin-York
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: