
More extracts progress
A bunch of work on building and managing extracts (plus take a look at the query speed underneath).
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I wasn't going to give a demo, but we got about 15 minutes left still in the meeting, so it'll be quick. Um, let's see. Is it this one? Okay, pretty small changes. If you have extracts, um, and you have extracts that are tied to a dashboard, we now have this little refresh without cache, um, and an extra option that will actually rebuild the extracts and run or you can just refresh without cache.
So you can have content that's both based on an extract or just a normal database query. So I'm going to go ahead and rebuild the extract. One of them is really small, another one's large. Um it'll take a second, but I'll show a dashboard that is dependent on these extracts and it should load pretty quickly. Um one second.
Okay. Yeah, 20 seconds to to build that one. And if I go to the dependent reload, um, in the query profiler, we added like metadata about the cache source. So we have these are extract requeries and it has the name of the the extract that they're from. And then that run without cache buttons also in the workbook.
So you can do it for a single query. Um, and then the last thing with this, wait, just for just for one sec, can you go back to on top of the X-rex for a second? This one, uh, the dashboard that was just all green. Yeah. So, does this mean that these queries actually took 100 milliseconds to run?
I think so. I have to look at the cache profile again. Um, but yeah, these are all just based this is all duct DB re-query. Um, I think probably answer that one. I think he's waiting in line. TJ quick. Oh, sorry. So, I I believe that that is the time that it took to um to like actually execute the the um the job part of this query.
Um not actually the time it took to run in duct tb. So, it it may be significantly faster than that in in duct tb. Nice. And what about what about planning too? Do we have any uh uh do we report against planning or like is planning a bottleneck here too? Not in this view. Um but we do have um we do have all of this information.
Uh it's just not surfaced here. I think you're right, Jamie, though, Johnny, correct me if I'm wrong, that like in a scenario where the quer is executing in 30 milliseconds, the like overhead that we have is probably comparable or maybe even a little bit more than that. Yeah. Um, just quick one, TJ. Does the um rebuild extract only show up if there are actually extracts or Okay.
Yeah. Yeah. So if if the dashboard is using an extract based query that option will show up or same if in the workbook that'll only show up if it's using an extract. Um and then the thing that would be awesome and I think we might work on it at some point is if we can get a kind of dependency plan set up for extract.
So it's like run the extract query once alone build that and then the rest of the dashboard can just flow from that. Uh it doesn't really work like that right now, but a workaround. It's pretty hacky is you can set up a scheduled job. And right now, this is like a slim down version of a dashboard. There is exactly one query for both extracts that I want to build.
And then there's this little option for the schedule job to just rebuild those extracts. So I can have it rebuild in the beginning of the day or something. And then the dependent dashboard would just load like this and be extract requeries. Um, so I probably need to come back and, you know, Jonathan and I can work on coming up with a way to actually make these dependent plans.
But for now, we have this little rebuild extract button on the scheduleuler. And if if we could get an API for that, too. Oh, yeah. Yeah, that's probably better actually. Why don't we just do that? And then then you can tie it to the for like whatever whatever people are going to want both. Yeah, that's a good idea.
Want this. This is amazing. Also like in all of our SC's we should we should be doing this for all of our demos. Yeah, but the API could be done like today. That's a good idea. Let's do that. Um one one quick thought. Um the thing that uh so with like refresh without cache, I think that's something that like viewers can run today.
Um so I think we're going to be wanting we're going to want to think about permissions around like at least controls like refresh extract and rebuild the whole thing. We should just make a super issue with every type of permission that we want to capture. There's just like there's an infinite number of these things right now. If you can update a workbook or like edit a workbook, you can do the rebuild extract, but you have to be able to edit the workbook.
So, if you're like an embed user or something that doesn't have access to it, you can't. This option won't appear for you because that could be a pretty expensive query to run. Yeah. But if you're like a restricted query in in an embedded context, you could theoretically rebuild without if they have access to Yeah. Okay. So, yeah, we can we can come back and make the permission stronger, right?
How do I get out of here?