Skip to main content
00:00/00:00
Lecture 34 of 63

Challenge Designing a join

Download Course (Free)

Course Content

0 / 63 completed
Section 1: Introduction2 videos

Reduce query response time with query tuning

1m

What you should know

1m
Section 2: How SQL Executes a Query6 videos

From declarative SQL to a procedural execution plan

2m

Scanning tables and indexes

3m

Joining tables

2m

Partitioning data

2m

Challenge Choosing how to partition a table

1m

Solution Choosing how to partition a table

1m
Section 3: PostgreSQL Tools for Tuning6 videos

Using PostgreSQL in Codespaces

2m

Explain and analyze

3m

Example plan Selecting with a WHERE clause

2m

Indexes

2m

Challenge Generating a query execution plan

1m

Solution Generating a query execution plan

1m
Section 4: Types of Indexes11 videos

Indexing

2m

B-tree indexes

1m

B-tree index example plan

4m

Bitmap indexes

1m

Bitmap index example plan

3m

Hash indexes

1m

Hash index example plan

3m

Bloom filter indexes

4m

PostgreSQL-specific indexes

1m

Challenge Choosing an index

1m

Solution Choosing an index

1m
Section 5: Tuning Joins10 videos

Types of joins

2m

Nested loops

2m

Nested loop example plan

4m

Hash joins

1m

Hash join example plan

2m

Merge joins

2m

Merge join example

3m

Subqueries vs. joins

1m

Challenge Designing a join

1mNow Playing

Solution Designing a join

1m
Section 6: Partitioning Data9 videos

Horizontal vs. vertical partitioning

2m

Partition by range

1m

Partition by range example

5m

Partition by list

1m

Partition by list example

5m

Partition by hash

1m

Partition by hash example

4m

Challenge Partitioning a table

1m

Solution Partitioning a table

1m
Section 7: Materialized Views5 videos

Materialized views

1m

Creating materialized views

2m

Refreshing materialized views

2m

Challenge Creating a materialized view

1m

Solution Creating a materialized view

1m
Section 8: Database Statistics and Identifying Slow Queries6 videos

Collect statistics about data in tables

2m

Analyzing execution statistics with pg stat statements

1m

Reviewing execution plans with the auto explain module

2m

Additional analysis with other pg stats data

1m

Challenge Analyze schema statistics

1m

Solution Analyze schema statistics

1m
Section 9: Other Optimization Techniques7 videos

Using common table expressions to avoid repetitive computation

1m

Hints to the Query Optimizer

1m

Parallel query execution

2m

Improving cache utilization

2m

Miscellaneous tips

2m

Challenge Design a common table expression

1m

Solution Design a common table expression

1m
Section 10: Conclusion1 videos

Next steps

1m