sonar icon indicating copy to clipboard operation
sonar copied to clipboard

Rethink `get` and RecordCache in client

Open Frando opened this issue 5 years ago • 0 comments

Currently, collection.get(req) in the client actually does a collection.query('records', req), so req can be a either { schema, id } or { key, seq }. Likely we want to have two seperate methods for this, because for key, seq (= ref soon?) we can easily check if the record is already loaded. For { schema, id } we might want to do the query always at the moment because new updates could have happened.

Frando avatar Jun 12 '20 11:06 Frando