internalsGet Pro

Data Engineering · Module 11

Data warehouses

Lessons
11
Free
1
Reading
~3 h

Your progress

0 / 11 lessons done

Sign in to track

Lessons

  1. Data warehouses: built for analytical queriesFreeEvery growing company reaches the day when someone runs a report on the app’s database and slows the app down. Knowing what a warehouse does differently tells you when you need one, and when you don’t yet.13 min
  2. How cloud warehouses separate storage and computeMost slow-report complaints in a cloud warehouse are not about the data at all: two workloads are sharing one pool of compute. Knowing where the data lives and where the work happens tells you whether to resize, split or wait.17 min
  3. Columnar execution and massively parallel processingEvery warehouse bill and every slow dashboard comes back to three questions: how many bytes a query reads, how fast each core works through them, and how evenly the work splits. Knowing the mechanism lets you read a query profile and fix the right one.17 min
  4. Partitioning, clustering and pruningA date filter makes a warehouse query cheap only when rows with nearby dates sit together. When they don’t, every dashboard tile reads the whole table, and the bill and the wait grow with the table, not with the question.16 min
  5. Materialized views and aggregate tablesMost slow, expensive dashboards repeat one large GROUP BY every time someone opens them. Storing that answer once is usually the biggest single saving in a warehouse, and choosing how it stays fresh decides whether the numbers can be trusted.16 min
  6. Loading data into a warehouseAlmost every table in a warehouse starts as a file in object storage or a row in a stream. Picking the loader decides how fresh the data is, what it costs, and whether a retry quietly doubles a day.17 min
  7. Warehouse costs: what you actually pay forA warehouse bill is mostly compute time, and much of that time can be a warehouse waiting for its next query. Knowing what each meter counts is how you explain a bill, and how you stop the next one growing.18 min
  8. Snowflake, BigQuery, Redshift and others comparedEvery data team is asked at some point why it uses its warehouse and not another one. A good answer names the workload, the data’s location and the cost of moving, not a winner.16 min
  9. Warehouse access control and data sharingA warehouse holds every table the business has, including customers’ phone numbers. Who can read what, and how data leaves the account, decide whether a leak or a stale partner report happens on an ordinary Friday.17 min
  10. Tuning slow warehouse queriesEvery warehouse team gets the message “this query is slow, can we make the warehouse bigger?”. Reading the query profile first usually finds the waste, and the fix costs nothing a month instead of four times the credits.17 min
  11. Design: a reporting warehouse for an online storeMost companies end up with one warehouse account that finance, dashboards, analysts and partners all depend on. Each part can be set up correctly and one team’s bad night can still reach everyone, so the account has to be designed as a whole, around who reads it and what each failure would cost them.28 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 38

Open glossary

Aggregate table

An ordinary table holding pre-computed sums and counts at a coarser grain than the fact table, rebuilt by a pipeline.