Longer caching plus extracts (!)

TJ Banghart · Friday Demos · July 25, 2025 · 1:46

The cache now has a max age of 30 days. Normally this may not make sense, but if you watch this video you'll see the instant-query experience after enabling extracts over a SQL query. Think…

Try it yourselfThe full week on docsdashboardsmodelingworkbook

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. And then the last thing is kind of going off of the the cubing extract work. Um, so I wanted to clean up the the extract component of it. And part of that is increasing the max cache age that we allow for these cache policies. Before it was 24 hours and now it's 30 days. So users can set a max cache policy on the model that lasts 30 days.

  2. Um, and with that you can do a new analysis, write a SQL query. Let's see, like select I'm just going to do something easy from users. Say whoops. And then get that running. I can save as a query view. And if the feature flags enabled, this little option appears, which is create as extract. So create as extract.

  3. And then I can also uh bind it to one of those cache policies. So I'm going to use the really long cache policy. It'll save the results for 30 days. data query view. Uh let's see, promote it. Nice. So now I have an extract, right? So it's not the cubing thing. This is a distinct extract. It's just a snapshot.

  4. Um it's identified in the viewpicker as an extract with this little cube. And that's going to do the same kind of split plan where it's going to build the cache entry. It's going to persist that entry for 30 days and then everything after this initial run it's just going to pull from the duct DB layer. So now whenever someone queries this view it's just going to be right from cache.

  5. So it's pretty quick. Um and then I'm working on the cube stuff still but I think that'll wait until next week to have a demo on that.