Skip to content

Commit f1d3f2e

Browse files
authoredFeb 28, 2024
Merge pull request #37 from RedisInsight/main
Updating the latest
2 parents 35e1714 + 53da99c commit f1d3f2e

File tree

5 files changed

+2
-17
lines changed

5 files changed

+2
-17
lines changed
 

Diff for: ‎src/ds/json/create.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Create JSON documents
2-
31
Here's a query that creates a JSON document describing a single bike.
42

53
```redis:[run_confirmation=true] Create a JSON document

Diff for: ‎src/ds/ts/cross-key.md

+1-3
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+
```

Diff for: ‎src/ds/ts/retrieve.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Basic data retrieval commands
2-
31
### The `TS.GET` command
42

53
`TS.GET` is used to get the sample with the highest timestamp from a given time series. It reports both the timestamp and the value.
@@ -124,4 +122,4 @@ The `GROUPBY` syntax is: `GROUPBY label REDUCE reducer`. The available reducer f
124122

125123
```redis TS.MRANGE with GROUPBY/REDUCE
126124
TS.MRANGE - + WITHLABELS COUNT 5 FILTER region=(east) GROUPBY region REDUCE sum
127-
```
125+
```

Diff for: ‎src/ds/ts/single-key.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Single-key aggregations
2-
31
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.
42

53
```redis AGGREGATION in action

Diff for: ‎src/sq/geospatial.md

-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
---
2-
title: "Geospatial queries"
3-
linkTitle: "Geospatial"
4-
description: Query based on geographic data
5-
weight: 4
6-
---
7-
81
Redis Stack's geospatial feature allows you to query for data associated with geographic locations. You can either query for locations within a specific radius or based on geometric shapes, such as polygons. A polygon shape could, for instance, represent a lake or the layout of a building.
92

103
The examples in this article use the following schema:

0 commit comments

Comments
 (0)