Skip to main content

Dashboards · Performance · Data freshness

Dashboard data freshness: how caching and refresh schedules keep numbers right

By DataViz team 3 min read

In short

A dashboard is fresh when its numbers are as recent as the decision needs, not as recent as possible. Live queries with a short cache suit operational data, a scheduled import suits data that changes hourly or daily, and every tile should say when it was last updated so nobody mistakes an old number for a new one.

What "fresh" means#

Data is fresh when it is as recent as the decision needs. A support queue needs minutes; a sales dashboard read each morning needs yesterday's orders; a month-end finance report needs the closed month. Asking for "real-time" everywhere costs database load and money and rarely changes a decision.

Why dashboards show stale numbers#

When a number looks wrong, it is usually one of these:

  1. The answer was cached. The BI tool kept an earlier result to answer quickly and hasn't asked the database again yet.
  2. The data was imported. The dashboard reads a copy that is refreshed on a schedule, and the last refresh was earlier.
  3. The data hadn't arrived. The pipeline that loads the warehouse runs hourly or nightly, so the database itself is behind.
  4. The time window moved. "Today" in the server's time zone isn't today in yours.

Showing the age of every number answers the first question before anyone asks it.

Live queries or imported data?#

Live queryImported copy
How recentAs recent as the database, within the cache timeAs recent as the last refresh
Load on your databaseA query whenever the cached answer expiresOnly when the copy refreshes
SpeedDepends on the database and the queryFast: the copy is optimised for reading
Best forOperational data that changes during the dayLarge tables, slow sources, daily or hourly data

How BI caching works#

A cache keeps a chart's answer for a set time. Everyone who opens the dashboard in that time gets the same answer without another database query; when it expires, the next viewer's request runs the query again. Two properties separate a safe cache from a dangerous one:

  • It must respect row-level security. An answer computed for one person may only be reused for people whose access rules are the same; otherwise the cache leaks rows.
  • It must be invalidated when the data changes. When an imported copy refreshes, every answer computed from the old copy has to go.

Choosing a freshness setting#

SettingUpdatesUse it for
Real-timeAbout every minuteOperational screens. Higher load on your database.
StandardEvery 5 minutesMost dashboards.
HourlyEvery hourData loaded by hourly jobs.
DailyOnce a dayReports, finance, month-end.
Always freshEvery time it is openedRarely: it is the slowest and the heaviest.

Set it once per dataset, since that is where the data's rhythm is known, and override it on a chart only when one chart really is different.

Protect your database#

  • Use a read-only login, and a read replica for busy production databases.
  • Don't set heavy queries to Always fresh. A dashboard opened by fifty people becomes fifty queries.
  • Import large or slow tables, and schedule the refresh after the pipeline that loads them.
  • Watch for charts that scan whole tables; give them a date filter by default.

How DataViz handles freshness#

  • Freshness inherits. A chart takes its dataset's setting, and a dataset takes the workspace default, which is Standard (5 minutes) unless an admin changes it. A chart can override it under Advanced.
  • Settings below Standard put real load on your database, so the pickers warn about them and only editors can choose them.
  • Imported datasets are different: their charts read the last import, and answers are kept until the next refresh replaces them, a day at most. A refresh clears every answer computed from the old copy.
  • Answers are shared safely. A chart's answer is reused only by people the dataset's security rules treat alike.
  • Every tile says how old it is ("Updated 2 min ago"), and Refresh asks the database again.

The datasets guide explains how to set freshness, and the dashboards guide how refresh works on a dashboard.

Questions and answers

How often should a dashboard refresh?

Match the refresh to the decision: about a minute for operational screens, five minutes to an hour for most business dashboards, and once a day for reports and finance. Faster refreshes add load on the database without improving decisions that are made daily.

Why does my dashboard show old data?

Usually because the answer was cached, the dashboard reads an imported copy that hasn't refreshed yet, the data pipeline loading the database runs later, or the date window uses a different time zone. A label showing when each tile was last updated tells you which.

Is real-time data always better?

No. Real-time queries cost database load and are slower to load, and most decisions are made on a daily or weekly rhythm. Use real-time only where someone acts within minutes.

Can a dashboard cache show me another user's data?

A badly designed one can. A safe cache reuses an answer only for people whose access rules are the same; in DataViz a chart's answer is shared only by people the dataset's security rules treat alike.

What is the difference between a live and an imported dataset?

A live dataset queries your database when its cached answer expires; an imported dataset reads a copy that refreshes on a schedule. Live suits data that changes during the day; imported suits large or slow tables and data loaded hourly or daily.