This PR makes sure that we always flush the DB transactions at regular intervals, even when not idle. This will make sure that we don't stop flushing when blocks are faster than expected, and that there is no latency for data to become available in the DB.
Flushing is always disabled for the past spork indexer, and enabled with a default setting for the live indexer.
Goal of this PR
This PR makes sure that we always flush the DB transactions at regular intervals, even when not idle. This will make sure that we don't stop flushing when blocks are faster than expected, and that there is no latency for data to become available in the DB.
Flushing is always disabled for the past spork indexer, and enabled with a default setting for the live indexer.
Fixes #477.