Skip to content

Commit

Permalink
Adjust weather index to match queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemaeyer committed Jul 3, 2020
1 parent 3368b38 commit e3bd469
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/0010_weather_index_performance.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE weather
DROP CONSTRAINT weather_key,
ADD CONSTRAINT weather_key UNIQUE (source_id, timestamp);

0 comments on commit e3bd469

Please sign in to comment.