An open API service indexing awesome lists of open source software.

https://github.com/rockwood/firehose

Demo showing TimescaleDB in Phoenix
https://github.com/rockwood/firehose

elixir phoenix-framework timescale

Last synced: about 2 months ago
JSON representation

Demo showing TimescaleDB in Phoenix

Awesome Lists containing this project

README

        

# Firehose

Demo showing [TimescaleDB](timescale.com) in Phoenix.

# Setup

* Install docker and docker-compose
* `docker-compose up -d`
* `mix deps.get`
* `mix ecto.create && mix ecto.migrate`
* `cd assets && npm install && cd -`
* `mix phx.server`
* `open http://localhost:4000`

# TimescaleDB

The `trades` table is stored in TimescaleDB hypertable which optimizes quering data accross time. To
see, run the query:

```sql
EXPLAIN SELECT * FROM trades;
```

For more info, see the [TimescaleDB docs](docs.timescale.com)