Add a moka cache to cache events to stop constantly polling the DB.
Then, you should be able to selectively invalidate when events get updated. Lots of event updater functions already call a function on the state, just add something to take in an event_id.
This should ideally use the state - moka caches are cheap to clone iirc.
Add a
moka
cache to cache events to stop constantly polling the DB. Then, you should be able to selectively invalidate when events get updated. Lots of event updater functions already call a function on the state, just add something to take in an event_id.This should ideally use the state -
moka
caches are cheap to clone iirc.