Skip to content

Commit ede14ef

Browse files
Update cross-key.md
1 parent 23918a7 commit ede14ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ds/ts/cross-key.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
## Cross-key aggregations
2-
31
`TS.MRANGE` and `TS.REVMRANGE` can also take an optional `AGGREGATION` argument. This allows you to run queries across different keys using different filters. In the following example, the specified filter looks across time series keys that have a matching `region` label, calculates the daily average using the `AGGREGATION` clause, and groups the data by region and applying the `sum` reducer function.
42

53
```
64
TS.MRANGE - + WITHLABELS FILTER region=(east,west) AGGREGATION avg 86400000 GROUPBY region REDUCE sum
7-
```
5+
```

0 commit comments

Comments
 (0)