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.
Research if we can run
refresh
function on separate thread on interval. Research ifrefresh
locks the DB and if simple read locks the DBThe 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.