You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we introduced querying the next entry arguments based on document view ids the old caching logic didnt't work anymore, we need a new solution!
Caching keys were organized as ${publicKey}/${viewId}, which means that it will just make an entry in the cache after every next entry request - but never hit it afterwards, as the view id changes constantly with each request. The cache just fills up but is never really used.
To bring back caching we need to extend the API with something which allows us to handle document instances and either persist the document id across a whole session (easy) or record the whole operation graph locally as well (hard).
The text was updated successfully, but these errors were encountered:
Sketchy idea for a high-level API (def. needs more thinking, but you get the idea):
constsession=newSession('http://localhost:2020/graphql').setKeyPair(newKeyPair());constdocument=newDocument('chat_0020...');constviewId=awaitdocument.create({message: 'Hello, new API',},session);awaitdocument.update({message: 'This UPDATE was using cached next entry arguments',},session);
Since we introduced querying the next entry arguments based on document view ids the old caching logic didnt't work anymore, we need a new solution!
Caching keys were organized as
${publicKey}/${viewId}
, which means that it will just make an entry in the cache after every next entry request - but never hit it afterwards, as the view id changes constantly with each request. The cache just fills up but is never really used.To bring back caching we need to extend the API with something which allows us to handle document instances and either persist the document id across a whole session (easy) or record the whole operation graph locally as well (hard).
The text was updated successfully, but these errors were encountered: