optakt / flow-dps

Flow Data Provisioning Service
Apache License 2.0
29 stars 13 forks source link

Change index writer to always flush DB transactions #482

Closed awfm9 closed 3 years ago

awfm9 commented 3 years ago

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.