near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

Suggestion to make transactions and receipts adapters to sequential way #256

Open khorolets opened 2 years ago

khorolets commented 2 years ago

Recent testnet load with 200+ transactions and 300+ receipts were lagging.

I really think this code causes the retry with a too heavy payload and we should try to avoid it

https://github.com/near/near-indexer-for-explorer/blob/08dfbe7d8f3a3e49ee42dd0720b444e8520cc147/src/main.rs#L86-L91

khorolets commented 2 years ago

@telezhnaya what do you think?

/cc @frol

frol commented 2 years ago

@khorolets Let's measure it on the specific block with and without concurrency and then make the final decision.

frol commented 2 years ago

Just for the future investigation, the recent blocks that caused slowdowns on mainnet are around #61617473