Merge pull request #2915 from poanetwork/vb-speedup-blocks_without_reward_query
Speedup of blocks_without_reward_querypull/2932/head
commit
67f9a3c1c4
@ -0,0 +1,9 @@ |
||||
defmodule Explorer.Repo.Migrations.BlockRewardsBlockHashPartialIndex do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
execute( |
||||
"CREATE INDEX IF NOT EXISTS block_rewards_block_hash_partial_index on block_rewards(block_hash) WHERE address_type='validator';" |
||||
) |
||||
end |
||||
end |
Loading…
Reference in new issue