-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eventindexer): add indexes to querying optimizations (#13951)
- Loading branch information
1 parent
8054497
commit 66649bd
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
packages/eventindexer/migrations/1666650702_alter_events_table_add_address_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE `events` ADD INDEX `address_index` (`address`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX address_index on events; | ||
-- +goose StatementEnd |
9 changes: 9 additions & 0 deletions
9
packages/eventindexer/migrations/1666650703_alter_events_table_add_event_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE `events` ADD INDEX `event_index` (`event`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX event_index on events; | ||
-- +goose StatementEnd |
9 changes: 9 additions & 0 deletions
9
packages/eventindexer/migrations/1666650704_alter_events_table_add_block_id_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE `events` ADD INDEX `block_id_index` (`block_id`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX block_id_index on events; | ||
-- +goose StatementEnd |
9 changes: 9 additions & 0 deletions
9
...ges/eventindexer/migrations/1666650705_alter_events_table_add_address_and_event_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE `events` ADD INDEX `address_and_event_index` (`address`, `event`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX address_and_event_index on events; | ||
-- +goose StatementEnd |