{
  "id": "timeseries",
  "title": "Timeseries configuration object",
  "url": "https://redis.io/docs/latest/operate/rs/8.0/references/rest-api/objects/bdb/timeseries/",
  "summary": "Configuration object timeseries.",
  "content": "\nConfiguration fields for timeseries.\n\n| Field | Type/Value | Description |\n|-------|------------|-------------|\n| ts-num-threads | integer (range: 1-16) | Number of threads for time series operations. Requires a database restart to take effect. |\n| ts-compaction-policy | string  | Default compaction rules. This default value is applied to each new time series upon its creation |\n| ts-retention-policy | integer (range: 0-9223372036854775807) (default: 0) | Default retention period, in milliseconds. This default value is applied to each new time series upon its creation, but if COMPACTION_POLICY is specified, it is overridden for created compactions as specified in COMPACTION_POLICY. |\n| ts-duplicate-policy | \"BLOCK\"\u003cbr /\u003e\"FIRST\"\u003cbr /\u003e\"LAST\"\u003cbr /\u003e\"MIN\"\u003cbr /\u003e\"MAX\"\u003cbr /\u003e\"SUM\"\u003cbr /\u003e(default: \"BLOCK\") | Default policy for handling insertion of multiple samples with identical timestamps. This default value is applied to each new time series upon its creation. |\n| ts-encoding | \"COMPRESSED\"\u003cbr /\u003e\"UNCOMPRESSED\"\u003cbr /\u003e(default: \"COMPRESSED\") | Default chunk encoding for automatically-created compacted time series. This default value is applied to each new compacted time series automatically created due to the creation of a new time series when COMPACTION_POLICY is specified. |\n| ts-chunk-size-bytes | integer (range: 48-1048576) (default: 4096) | Default initial allocation size, in bytes, for the data part of each new chunk. This default value is applied to each new time series upon its creation. |\n| ts-ignore-max-time-diff | integer (range: 0-9223372036854775807) (default: 0) | Default maximum time difference that can be expired to consider a new insertion to be a duplicate. This default value is applied to each new time series upon its creation. |\n| ts-ignore-max-val-diff | number (default: 0) | Default maximum value difference for a new insertion to be considered a duplicate. This default value is applied to each new time series upon its creation. |\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-07-23T12:05:56-05:00"
}
