Cube.js: Feature request: metadata (age, cache hit/miss) of the results returned

Created on 6 Sep 2019  路  3Comments  路  Source: cube-js/cube.js

Is your feature request related to a problem? Please describe.
When a user loads a query, it isn't clear if these are fresh results, or from the cache preAggregated table. We need to display metadata on the results so that the user can make a decision to continue with the analysis or kick-start a refresh (outside the scope of this issue.)

Describe the solution you'd like
The load result should have metadata on the when the query was run, whether it came from a cache or preAggregation, etc.

Describe alternatives you've considered
No alternatives at the moment.

enhancement

Most helpful comment

Available as lastRefreshTime in load response.

All 3 comments

@gane5h Hey Ganesh! Thanks for posting this! I think we can add something like loadTimestamp to the response. It'll be hard to say whether it comes from pre-aggregation or cache because it always comes from two of these sources. loadTimestamp will be always defined as min(cacheTimestamp, preAggregationTimestamp). Not sure if we need to provide two of these timestamps to client. Would love to hear your thoughts on this.

Hey @paveltiunov 鈥撀營 think just one timesatmp loadTimestamp will be sufficient for display purposes. Thanks.

Available as lastRefreshTime in load response.

Was this page helpful?
0 / 5 - 0 ratings