Enable Time-based Partitioning

  • In the UI, you can only enable time-based partitioning for new collections.

  • In the API, you can only enable time-based partitioning for existing collections.

Enablement using the Fusion UI

  1. Open the Collections Manager:

    Collections Manager

  2. Click New.

    Note
    In the UI, you can only enable time-based partitioning for new collections. To enable it for an existing collection, use the API.
  3. Click Advanced. Advanced

  4. Scroll down to "Time Series Partitioning".

  5. Click Enable.

    Enable Time Series Partitioning

    When you enable this option, Fusion displays the time series partitioning configuration options.

  6. Save the collection.

Enablement using the API

Use the Collection Features API to enable time-based partitioning for an existing collection.

Enable time-based partitioning using the default configuration:
curl -X PUT -H 'Content-type: application/json' -d '{"enabled": true}' http://localhost:8764/api/collections/<collection>/features/partitionByTime

No response is returned.

Submit an empty request to the same endpoint to verify that time-based partitioning is enabled:

curl -X GET http://localhost:8764/api/collections/<collection>/features/partitionByTime

Response:

{
  "name" : "partitionByTime",
  "collectionId" : "<collection>",
  "params" : { },
  "enabled" : true
}