openrankprotocol / openrank

MIT License
1 stars 0 forks source link

Refresh the secondary instance on interval #126

Closed lazovicff closed 1 week ago

lazovicff commented 3 weeks ago

Research if we can run refresh function on separate thread on interval. Research if refresh locks the DB and if simple read locks the DB

The refresh will lock the DB so it is best to do it in the same thread, and wait for the refresh to finish before continuing to receive new requests. This will require invoking the endpoint for refresh periodically from the sequencer binary itself.