duality-labs / hapi-indexer

A Node.js based indexer for the Duality Cosmos chain
1 stars 0 forks source link

Add some form of DB snapshot saving for quicker syncing #39

Open dib542 opened 10 months ago

dib542 commented 10 months ago

When an indexer service is updated, sometimes this does not necessitate re-indexing the chain data from height 0 (for example: minor npm dependencies should be updated) it would be great if the indexer could start from a known snapshotted position.

This could be:

There is a challenge in how to identify what is a "breaking" upgrade (requiring a full indexing) and "non-breaking" (ok to use DB snapshots). And there is also the issue of ensuring a snapshot file isn't used as a base or the wrong or a new chain. So it's likely that any DB file snapshot must be properly identified with an ID representing