
Way faster pivots
We did a bunch of work in the background to make pivots over large data sets with fill much faster.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Can I hear? Yeah, headphones are being weird. Uh this is it seems to be the theme of today. Uh demos that are very exciting or hard to show. Um but this is a rather big pivot fail fill query. I've made a a 4 million row table in Postgress and pivot filled it. Um, and if I run this query, I just did this 18 seconds.
Let's see if it takes 18 seconds again. Certainly, it's taking a while. Um, and it's hard to show this because I think even in real life, this can get even worse on customer instances with really big through tables with real data. And this is happening because the way we write pivots or the way we write the way we do fill, we join the real data to the fill data.
But the thing that we join, if you are a SQL nerd and you look at this real quick, you realize we're not grouping at the level. We're not grouping on the thing that we join on the left here. So we're kind of we're joining the full data to the fill data. um which in certain cases can get very slow and it grows with the size of your data verse uh the size of your report.
Um so this is not going to be a super exciting moment. I actually was hoping this would uh be a more obvious dramatic difference, but I have this feeling that it's going to be a bigger difference in the real world. Um, let me rebuild my app and hope that everything's not just dying because I'm screen sharing on Rome.
This usually takes like 3 seconds. You need to work on your Phil DJ, you know. Yeah, there we go. Okay. Idle conversation. Uh, speaking of Speaking of Phil. Yeah, it needed to fill fill some time. So, yeah, like I wish it loaded in a second because that would be a much cooler demo instead.
I think it's probably going to be like this is really slow everything because this is running on my computer. Okay, so it was twice as fast. That last one was 27 seconds. This one was 13 seconds. Everything got really slowed down. So, hold on. We We have timing in this. Do customers see this? Yeah.
Huh? Yeah. No, they don't. No, they don't. They don't. It's just us. Never mind. Is there any reason we can't take that and put it right here and let customers see it? No. Yes. Why? Okay. Accidental demo of a new feature. I never realized that. Also, yeah, we should take topic out of here, which is useless, and just clover it up and put the timing in.
Um anyway and that that and what we did is we basically just did the thing we aggregated before uh before filling or like the thing that we joined to is is grouped and aggregated. So this is a much smaller thing that uh is being joined in. Um it was a little tricky but I think we could get it.
Oh, and a bunch of that metadata is visible on the dashboard performance panel. Yeah, I I think customers would get a lot of value out of query runtime. I I completely forgot. Yeah, I like how we know it's there, but we should we should put that in the front end of the tool for sure. At least for the runtime of the query demo for next week.