diff --git a/CHANGELOG.md b/CHANGELOG.md index 287e54992b..b1147ec9f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Features ### Fixes +- [#3114](https://github.com/poanetwork/blockscout/pull/3114) - Fix performance of "Blocks validated" page ### Chore diff --git a/apps/explorer/priv/repo/migrations/20200518075748_create_index_blocks_miner_hash_number_index.exs b/apps/explorer/priv/repo/migrations/20200518075748_create_index_blocks_miner_hash_number_index.exs new file mode 100644 index 0000000000..f48ff9bbf0 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20200518075748_create_index_blocks_miner_hash_number_index.exs @@ -0,0 +1,7 @@ +defmodule Explorer.Repo.Migrations.CreateIndexBlocksMinerHashNumberIndex do + use Ecto.Migration + + def change do + create_if_not_exists(index(:blocks, [:miner_hash, :number])) + end +end