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
Today the denormalize function only returns a result if the whole query could be resolved from cache. It would be nice it it could return as much as possible, and also return an updated version of the query with the available fields removed. That query could be used to fill the missing parts of the cache. This would work best with data that is read-only because otherwise you might get inconsistent data in cache unless you refetch the full query.
The text was updated successfully, but these errors were encountered:
jonaskello
changed the title
Return diff of query
Denormalize should return partial result and diff of query
Aug 7, 2018
Instead of returning partial as a boolean we could return the diffed query. This could be implemented today by always returning the full query and no result if something is missing.
Perhaps returning partial should be optional for performance reasons. Bailing out early when data is missing will be quicker. Something like this could be used:
Where the partial parameter is a boolean specifying if partial results should be returned. The return value could include a similar partial flag to indicate if the result is partial.
Today the denormalize function only returns a result if the whole query could be resolved from cache. It would be nice it it could return as much as possible, and also return an updated version of the query with the available fields removed. That query could be used to fill the missing parts of the cache. This would work best with data that is read-only because otherwise you might get inconsistent data in cache unless you refetch the full query.
The text was updated successfully, but these errors were encountered: