Last updated
Was this helpful?
Last updated
Was this helpful?
The backfilling procedure executes your custom processor script for all events that has happened in the past. You can do this for the purpose of testing your scripts (e.g. only running against 100 blocks), or for the purpose of creating a fresh database for all your previous events.
That would be as follows:
You and your custom scripts.
Run command against certain block range (e.g. from the deployment of your contract).
See the printed by your processor.
the data via SQL.
Depending on your cluster size backfilling can handle ~100,000 blocks / second. This excludes your custom processor duration.
A real experiment for 2 million events, about 4 years worth of blocks, took about 30 minutes to finish.
If you have large backfilling needs reach out to our engineers or .
flair backfill
commandLearn about different ways of backfilling historical data using .
flair logs
commandYou can by your custom processor during a backfill job. You can even narrow down the logs to a specific "TransactionHash" or "BlockNumber" to debug much faster.
Run your scripts for historical events, for testing or initial fetching of your data