Skip to content

Commit

Permalink
Add indexes to time and url columns
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Feb 25, 2021
1 parent e3e58b0 commit 2f90af6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/collector/migrations/0003_indexes_time_url.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- +migrate Up

-- +migrate StatementBegin
CREATE INDEX url_idx ON buffer_event(url);
CREATE INDEX time_idx ON buffer_event(time);
-- +migrate StatementEnd

-- +migrate Down
-- +migrate StatementBegin
DROP INDEX url_idx;
DROP INDEX time_idx;
-- +migrate StatementEnd

0 comments on commit 2f90af6

Please sign in to comment.