Skip to content

Commit edbb1a0

Browse files
authored
Update configuration.md
1 parent 0f0639c commit edbb1a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ Default compaction rules for newly created keys with [`TS.ADD`]({{< relref "/com
113113

114114
Type: string
115115

116-
Default: No compaction rules.
117-
118116
Note that this configuration parameter has no effect on keys created with [`TS.CREATE`]({{< relref "commands/ts.create/" >}}). To understand the motivation for this behavior, consider the following scenario: Suppose a default compaction policy is defined, but then one wants to manually create an additional compaction rule (using [`TS.CREATERULE`]({{< relref "commands/ts.createrule/" >}})) which requires first creating an empty destination key (using [`TS.CREATE`]({{< relref "commands/ts.create/" >}})). But now there is a problem: due to the default compaction policy, automatic compactions would be undesirably created for that destination key.
119117

120118
Each rule is separated by a semicolon (`;`), the rule consists of multiple fields that are separated by a colon (`:`):
@@ -181,6 +179,11 @@ When a compaction policy is defined, compaction rules will be created automatica
181179

182180
_key_agg_dur_aln_ where _key_ is the key of the source time series, _agg_ is the aggregator (in uppercase), _dur_ is the bucket duration in milliseconds, and _aln_ is the time bucket alignment in milliseconds. Example: `key_SUM_60000_1000`.
183181

182+
#### Precedence order
183+
184+
1. The `ts-compaction-policy` configuration parameter.
185+
1. No compaction rules.
186+
184187
#### Example rules
185188

186189
- `max:1M:1h` - Aggregate using `max` over one-minute windows and retain the last hour

0 commit comments

Comments
 (0)