Skip to content

Commit 59d3a4c

Browse files
author
Julien Ruaux
committed
docs: Removed data-set loading steps
1 parent 1aab37e commit 59d3a4c

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

README.adoc

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,10 @@ cd {project-name}
7272
Next, use Docker Compose to launch containers for Trino and Redis Stack:
7373
[source,console]
7474
----
75-
docker-compose up
75+
docker compose up
7676
----
7777

78-
This example uses a small data set describing a collection of beers.
79-
To load the data set, you'll need to have https://developer.redis.com/riot/riot-file/index.html[riot-file] installed locally (see the https://developer.redis.com/riot/riot-file/index.html[riot-file] installation instructions).
80-
81-
Next, use `riot-file` to import the sample data set into Redis:
82-
[source,console]
83-
----
84-
riot-file -h localhost import https://storage.googleapis.com/jrx/beers.json \
85-
hset --keyspace beer --keys id
86-
----
78+
This example includes a preloaded data set describing a collection of beers.
8779

8880
Each beer is represented as a Redis hash.
8981
Start the Redis CLI to examine this data.
@@ -94,14 +86,7 @@ docker exec -it redis /opt/redis-stack/bin/redis-cli
9486
127.0.0.1:6379> hgetall beer:190
9587
----
9688

97-
Next, create an index on the beer data.
98-
While still in the Redis CLI, you can create the required index by running the following `FT.CREATE` command:
99-
[source,console]
100-
----
101-
127.0.0.1:6379> FT.CREATE beers ON HASH PREFIX 1 beer: SCHEMA id TAG SORTABLE brewery_id TAG SORTABLE name TEXT SORTABLE abv NUMERIC SORTABLE descript TEXT style_name TAG SORTABLE cat_name TAG SORTABLE
102-
----
103-
104-
Now that you've indexed the data set, you can query it using SQL statements through Trino.
89+
Now let's query the same data using SQL statements through Trino.
10590
Start the Trino CLI:
10691
[source,console]
10792
----

0 commit comments

Comments
 (0)