Replies: 1 comment 4 replies
-
@dcorbacho started to work on caching in the In particular, here are some issues or missing features:
Another idea I had this morning: perhaps we could cache paths selected by the caller only. Like, the caller could perform the following write: khepri_machine:put(StoreId, Path, Payload, #{cache => true}). Other paths would not be stored in the cache. Once we have memory management in place, having that would help memory management and increase the chance that wanted paths are present in the cache. Paths that the caller doesn't need in the cache will thus never cause wanted paths to be cleared from that cache. We could provide a store-level option to cache everything. |
Beta Was this translation helpful? Give feedback.
-
Currently, all queries go through the Ra server process because we need the state machine's state to fufill a query. This could be expensive in a workload with a lot of queries. We could cache the result of queries to improve this situation.
I'm dropping some random ideas below:
Beta Was this translation helpful? Give feedback.
All reactions