Skip to content

Timer to group calls to appDb store() method

Jeff Gough requested to merge jeffmakes/firmware:appDb-store-timing into master

Calls to store() are now non-blocking, and a timer is set to perform the write to persistent storage 5 seconds after the latest store() call. This makes persistent storage writes much less frequent.

This is the first attempt at a solution - a better approach is to put calls into a queue, the other end of which will be serviced by a worker task. Working on that next...

Merge request reports