Closed AngelBlock closed 2 years ago
transactions.receiver_account_id
index is already there:
Can you add to the testnet implementation too, for the constancy between environments, please?
@telezhnaya Please, double check that
Sure
We accidentally did not apply 3 migrations on Testnet, which include 5 indexes:
action_receipt_actions_action_kind_idx
execution_outcomes_status_idx
receipts_originated_from_transaction_hash_idx
transactions_actions_action_kind_idx
transactions_receiver_account_id_idx
Added all of them. @AngelBlock thank you for the catch!
Please add following index to the database table:
transactions
, field:receiver_account_id
for both testnet and mainnetExample of the query:
endpoint: postgres://public_readonly:nearprotocol@35.184.214.98/testnet_explorer
If block height "AND b.block_height >= 72465934" is close to the latest block: SELECT (select max(block_height) from blocks) - 1e5; query usually returns data within 30 secs.
If we increase requested blocks by, for example: SELECT (select max(block_height) from blocks) - 1e6;
We get an error:
ERROR: canceling statement due to statement timeout