Skip to content

Commit 9c08bf9

Browse files
committed
DOC-3179: RI tutorial restructure (part F)
1 parent 88c8afc commit 9c08bf9

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

src/ds/json/introduction.md renamed to src/ds/json/intro.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Primary features include:
88
- Documents are stored as binary data in a tree structure, allowing fast access to sub-elements.
99
- Typed atomic operations for all JSON value types.
1010

11-
### PRE-REQUISITES
12-
**You will need:**
11+
### Prerequisites
1312

1413
[Redis Stack](https://redis.io/download) >=7.2.0-v7 \
1514
OR \

src/ds/prob/intro.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ The following data structures trade perfect accuracy for extreme memory efficien
3030
* Provide notification when an element is removed from the top k list.
3131
* Discards older approaches like "count-all" and "admit-all-count-some" in favor of a "count-with-exponential-decay" strategy.
3232

33-
3433
### Prerequisites
3534

3635
[Redis Stack Server](https://redis.io/download) >=7.2.0-v7 \

src/ds/ts/cross-key.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
## Placeholder
1+
## Cross-key aggregations
22

3-
This is placeholder content.
3+
`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.
4+
5+
```
6+
TS.MRANGE - + WITHLABELS FILTER region=(east,west) AGGREGATION avg 86400000 GROUPBY region REDUCE sum
7+
```

src/ds/ts/retrieve.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ There are optional arguments for each of the `RANGE` commands:
8383
- `FILTER_BY_VALUE` - filter by a range of values.
8484
- `COUNT` - when used without `AGGREGATION`, it limits the number of reported samples. When used with `AGGREGATION` it limits the number of reported buckets.
8585
- `ALIGN` - is a time bucket alignment control for `AGGREGATION`. It controls the time bucket timestamps by changing the reference timestamp on which a bucket is defined. See the manual page for more information.
86-
- `AGGREGATION` - the same set of aggregator functions you've already seen are available for the `RANGE` commands.
86+
- `AGGREGATION` - the same set of aggregator functions you've already seen with `TS.CREATERULE` are available for the `RANGE` commands.
8787
- `BUCKETTIMESTAMP` - controls how bucket timestamps are reported. See the manual page for more information.
8888
- `EMPTY` - is a flag, which, when specified, reports aggregations for empty buckets. See the manual page for more information.
8989

@@ -104,10 +104,6 @@ TS.RANGE bike_sales_3_per_day - + FILTER_BY_VALUE 3000 5000
104104
TS.RANGE bike_sales_3 - + COUNT 10
105105
```
106106

107-
```redis AGGREGATION in action
108-
TS.RANGE bike_sales_1 - + AGGREGATION avg 86400000
109-
```
110-
111107
### `TS.MRANGE` and `TS.MREVRANGE`
112108

113109
`TS.MRANGE` and `TS.MREVRANGE` are nearly identical to their `RANGE` counterparts, except: (1) they require a label-based `FILTER` argument and (2) they may optionally take a `GROUPBY/REDUCE` argument.

src/ds/ts/single-key.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
## Placeholder
1+
## Single-key aggregations
22

3-
This is placeholder content.
3+
The previous tutorial showed that the `TS.RANGE` and `TS.REVRANGE` commands can take an optional `AGGREGATION` argument. Aggregations using the `RANGE` commands allow you to make ad hoc queries using, perhaps, a different aggregator than what you've used in your aggregation rules. In the following example, data are aggregated the `avg` function, calculating and reporting average daily sales for a bike shop.
4+
5+
```redis AGGREGATION in action
6+
TS.RANGE bike_sales_1 - + AGGREGATION avg 86400000
7+
```

src/sq/introduction.md renamed to src/sq/intro.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ The search and query features of Redis Stack allow you to use Redis as a:
1414
- Secondary index
1515
- Search engine
1616

17-
### PRE-REQUISITES
18-
**You will need:**
17+
### Prerequisites
1918

2019
[Redis Stack](https://redis.io/download) >=7.2.0-v7 \
2120
OR \

src/sq/learn-more.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Documentation
22

3-
* [Search and Query home](https://redis.io/docs/interact/search-and-query/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials)
3+
* [Search and query home](https://redis.io/docs/interact/search-and-query/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials)
44

55
### Social
66

0 commit comments

Comments
 (0)