Skip to main content
HomeSQL

Course

Improving Query Performance in PostgreSQL

IntermediateSkill Level
4.8+
383 reviews
Updated 01/2025
Learn how to structure your PostgreSQL queries to run in a fraction of the time.
Start Course for Free
SQLProgramming4 hr15 videos53 Exercises4,300 XP13,244Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training 2 or more people?

Try DataCamp for Business

Course Description

Losing time on slow queries? Hesitant to share your queries with more seasoned coworkers? In this course, you will learn how to structure your PostgreSQL to run in a fraction of the time. Exploring intertwined data relating Olympic participation, country climate, and gross domestic product, you will experience firsthand how changes in filtering method and using subqueries impact query performance. You will learn the properties of a row oriented database while also seeing how Hawaii's volcanos impact air quality. Restructuring your queries with the query planner and the SQL order of operations, you will soon be dazzling your coworkers with your effortless efficiency.

Prerequisites

Data Manipulation in SQL
1

Bringing Together the Data

Bundle up as you dive into the Winter Olympics! You will learn how to join, subquery, and create temporary tables while finding which Olympic athletes brave sub-freezing temperatures to train. You will also learn about the query planner and how its functionality can guide your SQL structure to faster queries.
Start Chapter
2

Minimizing Results and Decreasing the Load

Dig up those past algebra memories while learning the SQL order of operations. Find which countries "should" have the most athletes by looking at population and gross domestic product (GDP) while learning the best way to filter. You will also learn when your query aggregates (sums, counts, etc.) and how you can structure your query to optimize this process.
Start Chapter
3

Using Database Designed Properties

4

Assessing Query Performance

Learn the lingo of the Query Lifecycle and dive into the query planner. Explore how the query planner creates and optimizes the query plan. Find your next vacation locale by looking for countries with recent population growth while also seeing how a join impacts the query steps. Fine tune your optimization techniques by seeing how different filters speed your query times.
Start Chapter
Improving Query Performance in PostgreSQL
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.8
from 383 reviews
85%
14%
2%
0%
0%
  • Diego
    10 hours ago

  • Saad
    yesterday

  • Miiro
    4 days ago

    this course has helped enlightened me about the whole concept of database. it was great

  • Travis
    5 days ago

  • Paul Arthur
    5 days ago

  • Yu Gin
    6 days ago

Diego

Saad

"this course has helped enlightened me about the whole concept of database. it was great"

Miiro

FAQs

What datasets are used to practice query optimization in PostgreSQL?

You work with intertwined data on Olympic participation, country climate, gross domestic product, and Hawaii volcano air quality data to practice various optimization techniques.

What is the query planner and how does it help optimize queries?

The query planner is a PostgreSQL tool that creates and optimizes execution plans for your queries. You learn to read and interpret its output to guide structural improvements.

Does the course cover indexes and partitions?

Yes. Chapter 3 teaches you to use partitions and indexes to speed up queries, alongside understanding views and how row versus column oriented storage affects your query design.

Will I learn the SQL order of operations?

Yes. Chapter 2 covers the SQL order of operations and shows how understanding when aggregation occurs can help you structure queries for better filtering and performance.

How does this course differ from the SQL Server query performance course?

This course is specific to PostgreSQL, covering its query planner, storage structures, and optimization tools. The techniques are tailored to PostgreSQL rather than SQL Server.

Join over 19 million learners and start Improving Query Performance in PostgreSQL today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.