-
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 indexer in MySQL (#16075)
Co-authored-by: David <[email protected]>
- Loading branch information
1 parent
0d74004
commit 3416d9b
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
packages/eventindexer/migrations/20290906208839_alter_processed_blocks_chain_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 `processed_blocks` ADD INDEX `processed_blocks_chain_id_index` (`chain_id`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX processed_blocks_chain_id_index on processed_blocks; | ||
-- +goose StatementEnd |
9 changes: 9 additions & 0 deletions
9
...ages/eventindexer/migrations/20300906208839_alter_processed_blocks_block_height_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 `processed_blocks` ADD INDEX `processed_blocks_block_height_index` (`block_height`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX processed_blocks_block_height_index on processed_blocks; | ||
-- +goose StatementEnd |
9 changes: 9 additions & 0 deletions
9
...tindexer/migrations/20310906208839_alter_processed_blocks_block_height_chain_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 `processed_blocks` ADD INDEX `processed_blocks_block_height_chain_id_index` (`block_height`, `chain_id`); | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
DROP INDEX processed_blocks_block_height_chain_id_index on processed_blocks; | ||
-- +goose StatementEnd |