Freshness
What this covers
How to ask for data of a given age or of a given moment, why Tessallite sometimes refuses an "as of" question, and why the same question can give two different answers on two different days.
Ask for freshness
A question may state how fresh its answer must be. Through the REST query API (POST /query-router/api/v1/execute) add requested_freshness:
| Mode | Meaning |
|---|---|
{"mode": "CURRENT"} (default) | The currently eligible answer under the configured refresh and reuse policy. It may use older saved data; it does not force a source read or impose a universal age limit. |
{"mode": "MAX_AGE", "max_age_seconds": 3600} | Any saved result refreshed within the last hour may answer. |
{"mode": "AS_OF", "as_of": "2026-09-01T00:00:00Z"} | Data exactly as of that moment. |
The same rule decides for every route — the result cache, aggregates, pockets, Named Query results and the source.
Only this query API accepts requested_freshness. The Excel add-in and the headless (integration) API always run with the default, CURRENT: they cannot ask for a maximum age or for data as of a past moment.
Use MAX_AGE when you need an explicit age bound. A saved result can be semantically exact for its recorded data and still be older than the source. Different sources do not automatically share a common observation time.
When "as of" is refused
The source can only be read as it is now. An AS_OF question is answered only by a saved result that proves it holds data as of that moment. When none does, Tessallite refuses with freshness_unprovable instead of quietly returning today's data under yesterday's label. Ask for CURRENT when the eligible serving state is acceptable. A refresh timestamp alone does not establish a historical source snapshot.
Why the same question can give a different answer
Two answers to the same question, asked at different times, can differ for four reasons. None of them is an error.
| What changed | Example | Where to look |
|---|---|---|
| The data | New transactions arrived, or a saved summary was refreshed between the two questions. | The freshness shown with the answer, and the model's refresh history. |
| The model | A modeller deployed a new version: a measure's formula or a join changed. | The model's version history. |
| Your access | Your persona or a row-security rule changed, so you now see more or fewer rows. | The persona shown beside the answer. |
| The route | One answer came from the source and the other from a saved summary of an earlier refresh. Both are exact for the data they hold. | The route shown with the answer; see Live vs Aggregate. |
Example. On Monday, total sales for March is 1,200,000. On Tuesday it is 1,215,000. The model's query log shows Monday's answer came from a summary refreshed on Sunday, and Tuesday's from the source. Fifteen thousand of late March sales were loaded on Monday night. Ask with MAX_AGE to state how old an answer may be.
The administrator's Query Log lists each query with its time, user, route and duration.