From a9a5935e19852d02e628f3e2db07c8012fbcf713 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 19 Feb 2019 11:45:23 +0300 Subject: [PATCH] add indexes for block_reward query --- .../20190219082636_add_indexes_for_block_reward_query.exs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs diff --git a/apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs b/apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs new file mode 100644 index 0000000000..18f06b8999 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20190219082636_add_indexes_for_block_reward_query.exs @@ -0,0 +1,8 @@ +defmodule Explorer.Repo.Migrations.AddIndexesForBlockRewardQuery do + use Ecto.Migration + + def change do + create(index(:blocks, [:number])) + create(index(:emission_rewards, [:block_range])) + end +end