Merge pull request #2933 from poanetwork/vb-get-rid-of-deadlock-in-query-to-address_current_token_balance

Get rid of deadlock in the query to address_current_token_balance table
pull/2936/head
Victor Baranov 5 years ago committed by GitHub
commit c6408557bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 3
      apps/explorer/lib/explorer/chain/import/runner/blocks.ex

@ -6,6 +6,7 @@
- [#2918](https://github.com/poanetwork/blockscout/pull/2918) - Add tokenID for tokentx API action explicitly
### Fixes
- [#2933](https://github.com/poanetwork/blockscout/pull/2933) - Get rid of deadlock in the query to address_current_token_balance table
- [#2932](https://github.com/poanetwork/blockscout/pull/2932) - fix duplicate websocket connection
- [#2928](https://github.com/poanetwork/blockscout/pull/2928) - Speedup pending block ops int txs to fetch query
- [#2924](https://github.com/poanetwork/blockscout/pull/2924) - Speedup address to logs query

@ -119,7 +119,8 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
query =
from(address_current_token_balance in Address.CurrentTokenBalance,
where: address_current_token_balance.block_number in ^consensus_block_numbers,
select: address_current_token_balance.token_contract_address_hash
select: address_current_token_balance.token_contract_address_hash,
distinct: address_current_token_balance.token_contract_address_hash
)
contract_address_hashes = repo.all(query)

Loading…
Cancel
Save