DT5: Warehouse foundations

Lesson 3 of 5 · reading 15–25 minutes; practice and project time is on the module page

Cloud warehouses

🎯You'll be able to

Compare BigQuery and Snowflake, explain how they separate storage from compute, and estimate what a query or a month of use might cost.

🏠The everyday picture

Renting a hall by the hour is different from paying per guest. Cloud warehouses offer both kinds of deal, and the right one depends on how you use the hall.

📘What it really is

📝A worked example

Input (illustrative): SabziSathi at 50 times today's orders keeps about 1 GB of fact data a year. A dashboard query reads two columns, about 15% of the table, and runs 2,000 times a month.

Expected output: about 0.15 GB × 2,000 = 300 GB scanned a month, inside BigQuery's 1 TiB free allowance at the 1 November 2026 price list; storage of a few GB costs well under a dollar a month. These are estimates from the published prices, not a bill.

🌍Where it's used

📝Case scenario

An analyst at an edtech company ran select * on a 4 TB event table to look at ten rows, several times a day for a week. On-demand pricing charged for the full scan each time. A limit doesn't reduce what BigQuery scans; selecting three columns from one day's partition would have read a few gigabytes.

🖱️Try it

Estimate the monthly on-demand cost of a dashboard that scans 50 GB per refresh and refreshes every 15 minutes, at the 1 November 2026 price. Mark it illustrative. Success: about 4.8 TB a month (50 GB × 96 × 30 ÷ 1,000), which is about 4.4 TiB, so about 3.4 TiB beyond the free allowance, roughly $21.

⚠️Common mistakes

🛠️For your project

The capstone's design notes include an illustrative monthly cost for SabziSathi in a cloud warehouse, using this lesson.

✅Quick check

What does BigQuery's on-demand price charge for?

Show the answer

The amount of data each query scans.

What does Snowflake's auto-suspend save?

Show the answer

Compute credits while a warehouse is idle.

← PreviousLayers and schemas
ProLearners Assist