Merge pull request #2518 from poanetwork/ab-create-suggested-indexes

create suggested indexes
pull/2594/head
Victor Baranov 5 years ago committed by GitHub
commit e9d7b7cf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 8
      apps/explorer/priv/repo/migrations/20190807113117_create_suggested_indexes.exs

@ -47,6 +47,7 @@
- [#2520](https://github.com/poanetwork/blockscout/pull/2520) - Hide loading message when fetching is failed - [#2520](https://github.com/poanetwork/blockscout/pull/2520) - Hide loading message when fetching is failed
- [#2523](https://github.com/poanetwork/blockscout/pull/2523) - Avoid importing internal_transactions of pending transactions - [#2523](https://github.com/poanetwork/blockscout/pull/2523) - Avoid importing internal_transactions of pending transactions
- [#2519](https://github.com/poanetwork/blockscout/pull/2519) - enable `First` page button in pagination - [#2519](https://github.com/poanetwork/blockscout/pull/2519) - enable `First` page button in pagination
- [#2518](https://github.com/poanetwork/blockscout/pull/2518) - create suggested indexes
- [#2517](https://github.com/poanetwork/blockscout/pull/2517) - remove duplicate indexes - [#2517](https://github.com/poanetwork/blockscout/pull/2517) - remove duplicate indexes
- [#2515](https://github.com/poanetwork/blockscout/pull/2515) - do not aggregate NFT token transfers - [#2515](https://github.com/poanetwork/blockscout/pull/2515) - do not aggregate NFT token transfers
- [#2514](https://github.com/poanetwork/blockscout/pull/2514) - Isolating of staking dapp css && extracting of non-critical css - [#2514](https://github.com/poanetwork/blockscout/pull/2514) - Isolating of staking dapp css && extracting of non-critical css

@ -0,0 +1,8 @@
defmodule Explorer.Repo.Migrations.CreateSuggestedIndexes do
use Ecto.Migration
def change do
create_if_not_exists(index(:address_token_balances, [:block_number, :address_hash]))
create_if_not_exists(index(:block_rewards, [:block_hash]))
end
end
Loading…
Cancel
Save