Skip to content

Commit 7b4f8f4

Browse files
authored
Update configuration.md
1 parent 1253e8c commit 7b4f8f4

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

content/develop/data-types/timeseries/configuration.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Since the chunk size can be provided at different levels, the actual precedence
8989

9090
1. Key-level policy, as set with [`TS.CREATE`]({{< relref "/commands/ts.create/" >}})'s and [`TS.ALTER`]({{< relref "/commands/ts.alter/" >}})'s `CHUNK_SIZE` optional argument.
9191
1. The `ts-chunk-size-bytes` configuration parameter.
92-
1. The default hard-coded chunk size (`4096`)
92+
1. The hard-coded default: `4096`
9393

9494
#### Example
9595

@@ -221,12 +221,12 @@ Type: string
221221

222222
#### Precedence order
223223

224-
Since the duplication policy can be provided at different levels, the actual precedence of the used policy will be:
224+
Since the duplication policy can be provided at different levels, the actual precedence of the used duplication policy will be:
225225

226226
1. [`TS.ADD`]({{< relref "/commands/ts.add/" >}})'s `ON_DUPLICATE_POLICY` optional argument.
227227
1. Key-level policy, as set with [`TS.CREATE`]({{< relref "/commands/ts.create/" >}})'s and [`TS.ALTER`]({{< relref "/commands/ts.alter/" >}})'s `DUPLICATE_POLICY` optional argument.
228228
1. The `ts-duplicate-policy` configuration parameter.
229-
1. The default hard-coded policy (`BLOCK`)
229+
1. The hard-coded default: `BLOCK`
230230

231231
### RETENTION_POLICY / ts-retention-policy
232232

@@ -238,12 +238,18 @@ Type: integer
238238

239239
Valid range: `[0 .. 9,223,372,036,854,775,807]`
240240

241-
Default: `0`
242-
243241
The value `0` means no expiration.
244242

245243
When both `COMPACTION_POLICY` / `ts-compaction-policy` and `RETENTION_POLICY` / `ts-retention-policy` are specified, the retention of newly created compactions is according to the retention time specified in `COMPACTION_POLICY` / `ts-compaction-policy`.
246244

245+
#### Precedence order
246+
247+
Since the retention can be provided at different levels, the actual precedence of the used retention will be:
248+
249+
1. Key-level retention, as set with [`TS.CREATE`]({{< relref "/commands/ts.create/" >}})'s and [`TS.ALTER`]({{< relref "/commands/ts.alter/" >}})'s `RETENTION` optional argument.
250+
1. The `ts-retention-policy` configuration parameter.
251+
1. No retention.
252+
247253
#### Example
248254

249255
Setting the default retention to 300 days
@@ -264,13 +270,34 @@ redis> CONFIG SET ts-retention-policy 25920000000
264270

265271
Note: Before v1.6 this configuration parameter was named `CHUNK_TYPE`.
266272

267-
Default chunk encoding for automatically created time series keys when [ts-compaction-policy](#ts-compaction-policy) is configured.
273+
Default chunk encoding for automatically created compactions when [ts-compaction-policy](#ts-compaction-policy) is configured.
268274

269275
Type: string
270276

271277
Valid values: `COMPRESSED`, `UNCOMPRESSED`
272278

273-
Default: `COMPRESSED`
279+
#### Precedence order
280+
281+
Since the encoding can be provided at different levels, the actual precedence of the used encoding will be:
282+
283+
1. The `ts-encoding` configuration parameter.
284+
1. The hard-coded default: `COMPRESSED`
285+
286+
#### Example
287+
288+
Setting the default encoding `UNCOMPRESSED`
289+
290+
Version < 8.0:
291+
292+
```
293+
$ redis-server --loadmodule ./redistimeseries.so ENCODING UNCOMPRESSED
294+
```
295+
296+
Version >= 8.0:
297+
298+
```
299+
redis> CONFIG SET ts-encoding UNCOMPRESSED
300+
```
274301

275302
### IGNORE_MAX_TIME_DIFF / ts-ignore-max-time-diff and IGNORE_MAX_VAL_DIFF / ts-ignore-max-val-diff
276303

0 commit comments

Comments
 (0)