FuelLabs / fuel-indexer

*Archived* 🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
140 stars 67 forks source link

enhancement: use stored blocks for QA tests #1368

Closed lostman closed 7 months ago

lostman commented 1 year ago

Description

Once we can store blocks in the database (https://github.com/FuelLabs/fuel-indexer/issues/990), we can use them to run the QA tests much faster and/or cover more blocks. From 👀 estimation on my laptop, it is 10-100x faster to run an indexer this way.

pg_dump -Fc -t index_block_data -f index_block_data.backup.sql postgres

The open question is how to handle a situation when serialized blocks are no longer valid.