Skip to content

Commit

Permalink
Fix typo (github#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
doomspork authored Aug 17, 2022
1 parent 1ffa3e6 commit b6f34e1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ keywords: [schemas, indexes]
---

# Indexing data

Because looking up data can take a long time, especially if you have a lot of
data in your hypertable, you can use an index to speed up read operations. You
can create an index on any combination of columns, as long as you include the
Expand All @@ -15,6 +16,7 @@ Consider a simple example with temperatures collected from two locations called
`office` and `garage`:

An index on `(location, time DESC)` is organized like this:

```
garage-0940
garage-0930
Expand All @@ -26,6 +28,7 @@ office-0910
```

An index on `(time DESC, location)` is organized like this:

```
0940-garage
0930-garage
Expand Down Expand Up @@ -94,7 +97,7 @@ This query is not effective, because it would need to scan multiple sections of
the list. This is because the part of the list that contains data for
`time > 10` for one device would be located in a different section than for a
different device. In this case, consider building an index on `(store_id, time)`
insetad.
instead.

```sql
SELECT * FROM devices WHERE device_id = M, time > 10
Expand Down

0 comments on commit b6f34e1

Please sign in to comment.