
Snowflake info schema app
A micro app we build to explore and understand the Snowflake info schema -active queries, storage metadata, query volumes over time by source and much more.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I have a quick demo I guess uh can everyone see my screen yep uh so I started modeling the information schema um and I was mainly just really trying to understand the types of stuff that we have yeah we got a little Tech meme in the background of course um but I'm just starting to sort of preview the types of stuff that we can get out of the box so like first we've got our biggest tables and we can look at like row counts and bytes um but just spending some time trying to understand sort of what's in here that we could actually productize that's interesting so this is by schema public only has one table um we also have the biggest queries that have
ever been run inside Omni or not sorry not inside Omni inside snowflake um so I should mention this is all snowflake um and some of these queries take a moment to actually run um because I think this is like a a gigabyte or something like that a couple gigs to run but theoretically this will return and then we can see our biggest queries ever and who ran them and gut scan um before I sort of tab through but the nice thing here is that we can actually productize probably a lot of this um so we can see our biggest query ever was 18 gigs um we can see when they ran we can see the exact SQL that ran um and so we got some
nice tooling that we could actually give to people that just shows them quick stuff so this is an example that just looks at queries that are running in the database um probably only the one my own query um and you can see I've got to do some cleanup here uh because for whatever reason snowflake says that if it hasn't finished uh they give it Excel time which is kind of strange or maybe we did that but anyway um but you can also do stuff like Warehouse utilization by hour and so this shows us how what percentage of the data warehouse we are actually using on a five minut an hourly basis um so you can see that we are mostly underutilized um we can also
see things like what database user is actually running queries um the queries table takes the longest um but what's nice here is we can actually see sort of like how much exercise five Tran or Omni or whatever is actually putting on the data warehouse here um so you can see that our analytics usage has increased significantly recently whereas um if I look at like five Fran for example it's fairly consistent since we set it up um but we can see it start seeing you know byes scanned um by thing over time um and we can probably productize this if we wanted to into like a set of dashboards that we could hand people um and kind of my thought is maybe this could be like
a premium type thing that we offer to folks but in any case uh it's all modeled pretty pretty straightforward um we'd have to do this database by database to actually do it properly but got a nice little set of stuff I had a handful of conversations with Folks at Monte Carlo about this specifically and every everyone was like because they were all a little bit more data infrastructure folks in general they were all wildly ex so I also demoed Ariel's uh analytics in analytics uh you know sort of omni on Omni in our analytics Tab and in playground too and folks love the idea of having visibility into usage and even that into sort of actionable workflows and for data people that means how do
you go and op optimize queries or materialize tables or pull things into DBT that should be computed on an incremental basis that sort of thing so this is this is awesome and being able to productize it too is going to really resonate with the market yeah all this stuff reminds me of just the ROI conversations that came up at the at the snowflake first round event that we did and I think this is just tying into what people want there that's a Massa for a time to Value thing on like every new pc like if we can just pull this in as table Stakes it it separ it it speeds the conversation up on like everything so yeah I love it oh I have a
small requirement for you to work on next week which is to build something equivalent for all the embed activity I can probably figure that out like joking not joking yeah I mean as long as we've got it in a database somewhere