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

Allow collMod to change time-series bucket granularity

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc1, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • v5.0
    • Execution Team 2021-05-31
    • 49

      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.

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

              Created:
              Updated:
              Resolved: