-
Feature: Flag to cache data documentsSummary
Motivation
Detailed design
How we teach this
Drawbacks
Alternatives
Unresolved questions
With the hyper63 client add the ability to setup a database or document type as cachable, which means that everytime that document type is added, updated or deleted it would also update the cache, and when a document get by id is requested it is pulled from the cache first. and if a list docs is called, the list queries the cache, which means the cache documents will need to be prefixed with the A potential implementation would look like this client.setup.db({types: [
{name: 'movie', cache: true },
{name: 'actor', cache: true },
{ name: 'producer', cache: false}
]}) This would only allow the document types of with the following names and would cache each type that was flagged as cache true. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Why implement these features in the client and not in core?My initial thoughts is to treat the client as a place to test patterns and gauge adoption early on, if the pattern is proven and it should reside in core, then take steps to migrate to the core service. By taking this approach we can keep core as minimal as possible until we know the right solution and then implement in core to get the performance benefits. |
Beta Was this translation helpful? Give feedback.
-
I am recommending we hold off on this RFC because it feels like it is too much too fast, I think we should revisit when the pattern is validated and repetitive in userland |
Beta Was this translation helpful? Give feedback.
I am recommending we hold off on this RFC because it feels like it is too much too fast, I think we should revisit when the pattern is validated and repetitive in userland