Courses / Course 07

Cloud Warehouses

Where company data actually lives, and how to keep the bill under control.

  • IntermediateLevel
  • about 1.5 hoursTo complete
  • 5 lessonsWith checked exercises
  • FreeNo account needed

What you will learn

  • Explain columnar storage and separate compute
  • Turn bytes scanned into cost
  • Use partitioning and clustering to read less
  • Choose warehouse sizes
  • Run a cost review

Syllabus

  1. 1
    How cloud warehouses work

    Columnar storage, separate compute, and why you pay for what you scan.

    14 min
  2. 2
    What a query costs

    Turn bytes scanned into euros, and find the queries that cost the most.

    14 min
  3. 3
    Partitioning and clustering

    Make the warehouse read less: filter on the partition column and cluster on what you filter by.

    14 min
  4. 4
    Compute and warehouse sizes

    Bigger warehouses are faster but cost more per second. Pick the smallest one that meets the deadline.

    12 min
  5. 5
    Mini project: a cost review

    Find the biggest waste in the warehouse and show what fixing it would save.

    16 min

The data you will use

Data team logs

The logs a data team watches every day. Each night three pipelines run for the Nordic Shop: load_orders, load_payments and build_marts, which needs the other two.

Tables: pipeline_runs, query_log

Helsinki City Bikes

Real open data from the city bike system in Helsinki and Espoo. Bikes are available from April to October each year, so there is no data for the winter months.

Tables: stations, daily_trips

The lesson How cloud warehouses work walks you through every table and column. Under every code box you can also open a list of the tables and what each column means.

Learn in public on GitHub

Do the exercises in the browser, or in the public course repo so your work shows on your GitHub profile.

  1. Fork the course repo

    One click on GitHub gives you your own copy with every exercise and dataset.

  2. Solve and open a pull request

    Put your answers in your own folder and open a pull request. A bot checks them and comments with ✅ or ❌.

  3. Join the graduates

    Finished a course? Add your name to GRADUATES.md. Your work stays on your GitHub profile for recruiters to see.

Open this course on GitHub →

What you will build

A cost review of a month of warehouse queries, with the saving of one fix.

Based on a real project: Wikipulse