dataSights

Caching Service

Last updated

Online reporting tools like Power BI, Looker and Tableau generate SQL against your live data every time a report renders. Point them at a heavy view and reports take minutes, or don't render at all. The Caching Service fixes that: it materialises the view's results into a real, physical table on a schedule, so the reporting tool reads plain, post-processed data with no on-the-fly logic. Faster Power BI is the headline, but Excel refreshes and GSheet pushes speed up too: it is a warehouse-style approach without the pain of building pipelines. Your queries don't change, because the cached data answers to the view's original name.

Open it from the menu: Data Engineering > Services & Tools > Caching Service. The subtitle: "Add Views To Cache Data".

Cache a view

  1. The screen lists your SQL views with their Status and Last Synced time.

  2. Select the plus icon on the view you want to cache. Confirm the prompt ("You are going to add {view}").

  3. That's it: the row shows its sync status from then on. You'll see "Successfully added".

Set the sync order

Cached views process in the order shown, top to bottom. Reorder a row two ways:

  • Drag it: grab the handle on the left of the Order column and drop the row where you want it.

  • Nudge it: use the up and down arrows next to the handle to move a row one place at a time.

The new order saves automatically as soon as you drop or click; there is no separate save step. Order only applies to views that are already cached; a view you haven't added yet has no position to set.

Cache later, without changing anything

You don't have to decide up front. Start building your report against the view; if it slows down as data grows, add the view to the Caching Service then. Because the cached table answers to the same name, your Power BI model, Excel query or Sheet push needs no change at all: it simply starts reading cached data.

When the cache refreshes

  • Cached views refresh automatically after your connector syncs finish (Xero, Cin7 Core, HubSpot, Shopify and so on), so cached data tracks your source data without needing its own schedule. You can add a Caching Service schedule on the Syncs screen, but for that reason it is generally unnecessary.

  • Want a refresh right now? Select the Trigger icon on the row ("Trigger sync here"). The Sync data window confirms the view; select Update and the refresh starts ("Syncing started successfully.").

Changing a cached view's SQL

Once a view is cached, its original logic lives on under the name ImportedToTable_{view} while the original name serves the cached table. To change the logic: edit that view's SQL in the SQL Editor (alter and execute), then Trigger a refresh on this screen so the cached table rebuilds with the new logic immediately.

Stop caching a view

Select the remove icon on the row and confirm ("You are going to remove {view}"). The cached table is dropped and the original live view takes over again, same name, no query changes needed.

Related: Services & Tools ยท The caching service

dataSights

Try dataSights free

See how dataSights automates your Xero consolidation and reporting. Start your 14-day free trial, no credit card required.

Start for free