Skip to content

Commit

Permalink
hypertable chunk to 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Klaassen committed May 17, 2024
1 parent ed3071f commit 788d5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/raw/ns_trains.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ create table if not exists ns_trains (

select addgeometrycolumn('ns_trains', 'location', 4326, 'POINT', 2);

select create_hypertable('ns_trains', 'timestamp');
select create_hypertable('ns_trains', by_range('timestamp', INTERVAL '1 day'));
create index on ns_trains(rit_id, timestamp desc);

0 comments on commit 788d5c0

Please sign in to comment.