From the course: AWS Certified Data Engineer Associate (DEA-C01) Cert Prep
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Maintaining tables
From the course: AWS Certified Data Engineer Associate (DEA-C01) Cert Prep
Maintaining tables
- [Instructor] Imagine that we just got our tables sorted and optimized, and now we have to make a large update like copying more rows into a table. That is definitely going to impact our sorting and slow down our queries. So in this lesson, we'll learn how to maintain our Redshift tables. Redshift maintains metadata about the tables in your database known as statistics. Query Planner uses the statistics to determine the strategy for executing a query. To generate statistics, Redshift uses the ANALYZE operation, which gets a sample of rows from a table, does some calculations, and then saves the resulting column statistics. After loading data into an empty table, Redshift will automatically run the ANALYZE operation. However, if you used a COPY command to add more rows to a table that already has data, the table statistics may need to be updated, but Redshift won't always run the ANALYZE operation again. So, you can add the STATUPDATE ON option to the COPY command, which forces an…
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
-
-
-
-
-
-
-
-
-
(Locked)
Introduction45s
-
(Locked)
Analytics services2m 23s
-
(Locked)
Amazon Redshift5m 14s
-
(Locked)
Hands-on learning: Launch an Amazon Redshift cluster8m 22s
-
(Locked)
Amazon Redshift serverless2m 32s
-
(Locked)
Schema design for Amazon Redshift2m 36s
-
Loading data into Amazon Redshift6m 19s
-
(Locked)
Hands-on learning: Use the Amazon Redshift COPY command5m 19s
-
(Locked)
Unloading Amazon Redshift data1m 52s
-
(Locked)
Hands-on learning: Unload data to Amazon S33m 10s
-
(Locked)
Column compression2m 45s
-
(Locked)
Distribution styles5m 28s
-
(Locked)
Maintaining tables3m 41s
-
(Locked)
Amazon Redshift federated queries1m 55s
-
(Locked)
Amazon Redshift Spectrum2m 42s
-
Amazon Redshift materialized views3m 39s
-
(Locked)
Transform data with stored procedures4m 18s
-
(Locked)
Workload management1m 59s
-
(Locked)
Zero-ETL integrations3m 3s
-
(Locked)
Streaming ingestion2m 7s
-
(Locked)
Amazon Athena4m
-
(Locked)
Partitioning data3m 2s
-
(Locked)
Creating views2m 40s
-
(Locked)
Hands-on learning: Create and query tables using Athena4m 56s
-
(Locked)
AWS Lake Formation1m 58s
-
(Locked)
Hands-on learning: Create a data lake9m 9s
-
(Locked)
Amazon QuickSight4m 47s
-
(Locked)
Hands-on learning: Create a QuickSight dashboard5m 33s
-
Amazon OpenSearch7m 11s
-
(Locked)
-
-
-