Skip to content

Commit

Permalink
add an index for the new query
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jun 22, 2023
1 parent 17f0d67 commit 23c4695
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE `events` ADD INDEX `msg_hash_event_index` (`msg_hash`, `event`);

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP INDEX msg_hash_event_index on events;
-- +goose StatementEnd

0 comments on commit 23c4695

Please sign in to comment.