https://github.com/samdvr/cassandra-timeseries
https://github.com/samdvr/cassandra-timeseries
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samdvr/cassandra-timeseries
- Owner: samdvr
- Created: 2018-07-21T01:34:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T15:36:57.000Z (almost 8 years ago)
- Last Synced: 2025-02-03T08:01:43.618Z (over 1 year ago)
- Language: Scala
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cassandra Timeseries Data Modeling
## Table Definition
```sql
CREATE TABLE Events (
user_id uuid,
timestamp timestamp,
event_id uuid,
body text,
PRIMARY KEY (user_id, timestamp)
) WITH CLUSTERING ORDER BY (timestamp DESC);
```
This project uses Http4s and Cassandra driver.