From the course: Advanced Snowflake: Deep Dive Cloud Data Warehousing and Analytics
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Retrieval optimization using cached results - Snowflake Tutorial
From the course: Advanced Snowflake: Deep Dive Cloud Data Warehousing and Analytics
Retrieval optimization using cached results
- Now that we've successfully loaded data into the Iowa Sales table, be ready to run queries on this table. This table contains records for the sales of different kinds of drinks across stores in Iowa. I'm going to run my very first Select Star from Iowa Sales. Now, because this is a large table, this query will take up to a minute to run. So you'll have to be a little patient. And once you get the results, let's take a look at how long it took for a query to execute. And if you click on the little cross at the bottom right of your screen you'll see that this query took about 44 seconds to run. And a total of 19.7 million rows were returned. Now this was a fairly simple query, no joints, no filtering, nothing, but you'll find that the Query Profile still holds some information for us. So let's open up the Query Profile and you'll find that there are two blocks in here. The bottom most block is the Table Scan…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Caching, clustering, and search optimization5m 6s
-
(Locked)
Loading data using COPY INTO4m 13s
-
(Locked)
Retrieval optimization using cached results3m 54s
-
(Locked)
Enabling clustering on tables4m 33s
-
(Locked)
Querying clustered tables3m 59s
-
(Locked)
Querying clustering information2m 45s
-
(Locked)
Running point lookup queries on search-optimized tables5m 27s
-
(Locked)
Clustering vs. search optimization5m 55s
-
-
-
-