Change index: base it to hash column

v6.0.0-dev
Viktor Baranov 11 months ago
parent a176c38825
commit f6f225d772
  1. 2
      apps/explorer/priv/repo/migrations/20231215132609_add_index_blocks_refetch_needed.exs

@ -3,7 +3,7 @@ defmodule Explorer.Repo.Migrations.AddIndexBlocksRefetchNeeded do
def up do def up do
execute(""" execute("""
CREATE INDEX consensus_block_hashes_refetch_needed ON blocks((1)) WHERE consensus and refetch_needed; CREATE INDEX consensus_block_hashes_refetch_needed ON blocks(hash) WHERE consensus and refetch_needed;
""") """)
end end

Loading…
Cancel
Save