smaple.tr
AI & Data

Data Lake vs Data Warehouse: Which One Does Your Team Need?

Mehmet Kurtipek
May 2, 2026
12 min read
AI & Data
Data Warehouse
Data Lake
Lakehouse
BigQuery

A data warehouse stores cleaned, structured data in tables built for SQL reporting, and it checks the shape of the data when it is loaded (schema-on-write). A data lake stores raw files of any kind, such as database exports, JSON events, logs, PDFs and images, cheaply in object storage, and structure is applied only when someone reads them (schema-on-read). Pick a warehouse when the main job is reporting that people must trust; add a lake when you also need to keep raw or unstructured data, or feed machine learning, at a volume where keeping everything in the warehouse gets expensive.

For many small teams the honest answer is "a warehouse, and no lake yet", and for some it is "PostgreSQL is enough".

The differences at a glance

Data warehouse

Data lake

What goes in

Cleaned, modeled tables (modern products also take JSON columns)

Raw files in their original format: CSV, JSON, Parquet, logs, documents, images

When structure is applied

On load (schema-on-write)

On read (schema-on-read)

Where the data lives

Inside the warehouse product: BigQuery, Snowflake, Redshift

Object storage: Amazon S3, Google Cloud Storage, Azure Data Lake Storage

Typical users

Analysts, finance, BI dashboards

Data engineers, data scientists, ML pipelines

What you mainly pay for

Query compute (bytes scanned or running time)

Storage is cheap; you pay for the query engines and for the people who keep it organized

How it fails

Every new source needs modeling work first, so people export CSVs and work around it

It becomes a "data swamp" that nobody trusts

The table hides one thing: the line between the two has blurred. BigQuery and Snowflake can query files sitting in object storage, and open table formats let a lake behave like a warehouse. That combination is the lakehouse, covered further down.

What a data warehouse is for

A warehouse holds data you have already decided how to use. Columns have types, and tables are usually modeled around business questions: a fact table of orders or payments in the middle, with dimension tables for customers, products and dates around it. Because the shape is checked on load, a malformed date makes the load fail instead of quietly skewing next month's revenue chart.

That is what a warehouse is really for: it is where you can check a number and show that it is right. Savings United, a Hamburg-based coupon company, earns commission through affiliate networks, and its reports can't be trusted until each network's payout data matches the warehouse. Our senior data engineer sat in its BI team from 2020 to 2024 and automated that check, first for CJ and Awin and later for CJ, eBay and Impact payouts. We also documented the Tradedoubler payout pipeline, which ran from raw data through a staging area into the warehouse and on to Looker, and in 2024 we validated the move of the cost fact table from SQL Server to BigQuery.

Two things worth knowing before you choose one:

  • "Structured data only" is out of date. Snowflake has a VARIANT type and BigQuery a JSON type, so semi-structured events can go into a warehouse without being flattened first.
  • Cloud warehouses bill storage and compute separately, and compute is where the bill grows. The cost section below shows how fast.

The common choices are Google BigQuery, Snowflake and Amazon Redshift. If you are small, PostgreSQL with a separate analytics schema (or a read replica) plus dbt for the transformations is a perfectly good warehouse until queries over your largest tables get slow.

What a data lake is for

A lake is one or more buckets in object storage holding files in open formats, plus a catalog that records what those files are. Storage is cheap: Amazon S3 Standard costs $0.023 per GB per month for the first 50 TB in us-east-1. Nothing has to be modeled before it lands, and many engines can read the same files: Spark, Trino, DuckDB, Amazon Athena, and BigQuery or Snowflake through external tables.

You want one when:

  • you need to keep raw history so you can reprocess it later with logic you haven't written yet;
  • the data is files by nature: PDFs, images, audio, sensor dumps;
  • you collect event or log data in volumes you wouldn't pay warehouse prices to keep;
  • data scientists need raw records that the analysts' aggregated tables have summarized away.

The first reason is the one small teams underrate. In the data migration platform we built for Tribute Technology, source data from funeral homes' old systems (MSSQL backups, MySQL databases, CSV, JSON and XML) landed raw in MongoDB. Staff then mapped fields with versioned mappings they could clone and re-run, and approved or rejected the result before export. That is the lake idea at small scale: while the untouched raw copy exists, a wrong mapping is fixed by editing it and running it again, without going back to the source system.

How a lake turns into a swamp

Lakes go bad quietly. The warning signs:

  • Nobody can say which folder holds the real orders data, and there are three copies with different dates.
  • Queries read the whole bucket, because files aren't partitioned by date or by another common filter.
  • Millions of tiny files, often written by streaming jobs, make every query slow.
  • Personal data sits in raw files, and the only way to delete one person's records is to rewrite the files.

The fixes are dull and they work: a catalog (AWS Glue, Unity Catalog or whatever your platform provides) with a named owner for each dataset, a fixed folder and partition layout, compaction jobs that merge small files, and a rule that raw data is written once and never edited by hand. Our post on data governance covers the ownership side.

The lakehouse: warehouse tables on lake storage

A lakehouse keeps the data as open files in object storage and adds a table layer on top, so it can be queried and updated like a warehouse. That layer is an open table format: Apache Iceberg, Delta Lake or Apache Hudi. The format tracks which data files (usually Parquet) make up a table and adds transactions, schema changes, row-level updates and deletes, and time travel to earlier versions of a table.

What changed over the last two years is that the big engines now meet on Iceberg. Spark, Trino and Flink read and write it, and Snowflake, BigQuery, Athena and Databricks all support Iceberg tables, so one copy of the data can serve several engines without being duplicated into each.

Lakehouse projects usually organize data in layers, which Databricks calls the medallion architecture: bronze for raw data, silver for cleaned and validated data, gold for refined tables that feed dashboards and models, often built as a dimensional model. If that sounds like the raw, staging and warehouse layers of the Savings United payout pipeline above, it is: the same discipline under new names.

Is it worth it? A lakehouse pays off when you have a lot of data, analysts and data scientists working on the same data, and at least one engineer whose job includes the table upkeep: compaction, expiring old snapshots, permissions. With a few hundred gigabytes and one analyst, it adds moving parts and gives you nothing back.

What it costs: a worked example

Storage is the cheap part everywhere. The bill is decided by how much data your queries read, or how long your compute runs.

Take 500 GB of data and a sales dashboard that refreshes every 15 minutes over a 50 GB orders table. That is 96 refreshes a day. New rows arrive all day, so the engine can't answer from cached results, and if every refresh reads the whole table, that adds up to about 144 TB (131 TiB) a month.

Setup

Storage per month

Queries per month, full scan

Queries per month, reading a 2 GB slice

BigQuery on-demand (us-central1)

about $10.50

about $810

about $27

S3 Standard + Athena (us-east-1)

about $11.50

about $720

about $29

BigQuery's on-demand pricing is $6.25 per TiB scanned with the first TiB each month free, and active storage in us-central1 works out to about $0.023 per GiB per month after a free 10 GiB. Athena charges $5 per TB scanned. The last column assumes the table is partitioned by date and the dashboard only reads the last month, about 2 GB. Partitioning by date is the only difference between the last two columns, and it cuts the query bill by a factor of 25 to 30. Both engines are also columnar: a query that names only the columns it needs reads less than a full scan, while SELECT * reads everything. On Athena that holds only for Parquet or ORC files; over CSV or JSON every query reads whole files.

BigQuery also lets you make a table reject any query that doesn't filter on its partition column (require_partition_filter), and lets you cap the bytes a single query may bill. Turn on both before you hand out dashboard access.

Snowflake bills differently: by how long a virtual warehouse runs. A Gen1 X-Small warehouse uses 1 credit per hour, billed per second with a 60-second minimum each time it starts, and the dollar price of a credit depends on your edition and region. New standard warehouses are now created as Gen2 by default in most regions, and Gen2 has its own credit rates in Snowflake's consumption table, so check which generation you are running before you compare. The setting that decides the bill is auto-suspend, which defaults to 600 seconds. With the dashboard above and a ten-second query, every refresh keeps the warehouse running for more than ten minutes. That is over 16 hours a day and close to 500 hours a month, which on a Gen1 X-Small is close to 500 credits.

Those idle minutes buy nothing here. The next refresh comes after the warehouse has already suspended, and Snowflake drops the warehouse cache on suspension. Set auto-suspend to 60 seconds and the same dashboard keeps the warehouse up for roughly 60 to 80 hours a month. The range is there because Snowflake checks for idle warehouses only about every 30 seconds. Longer values make sense when queries arrive a minute or two apart and can reuse a warm cache.

PostgreSQL is priced the other way round: you pay a fixed monthly price for the server and nothing per query, so the 2,880 refreshes above add nothing to the bill for as long as the server keeps up with them.

How to choose

Rules of thumb we'd use:

  1. Under a few hundred GB, mostly from your app database and a handful of SaaS tools, used for dashboards and finance: a warehouse, or PostgreSQL with dbt. No lake. Keep raw extracts in a bucket if you like, but don't build a platform around them.
  2. Raw events, logs or files you must keep but haven't modeled, or a volume that makes warehouse storage the expensive line: a lake of Parquet files with a catalog, next to the warehouse. Load into the warehouse only what reports need.
  3. Large data used by both analysts and data scientists, or several engines that must see one copy: a lakehouse on Iceberg or Delta Lake, with a named person who owns table maintenance.
  4. Personal data in any of these: decide which region it may live in and how you will delete one person's records before you pick a format. Raw files are the hardest place to honor a deletion request. Table formats with row-level deletes make it manageable, as long as you also expire old snapshots (Iceberg) or run VACUUM (Delta Lake): until then, the deleted rows still sit in older files that time travel can read.

How data gets in matters as much as where it lands. Whether you transform before or after loading is the ETL vs ELT question, and our modern data stack post covers the tools that usually sit around a warehouse.

Frequently asked questions

Is BigQuery a data lake or a data warehouse?

A warehouse. It can also query files in Cloud Storage and Apache Iceberg tables, so it often sits on top of a lake as the SQL engine.

Which file format should a data lake use?

Parquet, for anything tabular. It is columnar and compressed, every engine mentioned here reads it, and engines that bill by bytes scanned, such as Athena, read only the columns a query uses. Keep the original JSON or CSV in a raw area if you may need to reprocess it, and point queries at the Parquet copy. Iceberg and Delta Lake tables are usually Parquet files underneath, so the choice still holds if you move to a lakehouse later.

Can I start with a warehouse and add a lake later?

Yes, and that is the usual order. Start copying raw extracts to object storage early, even if nothing reads them yet. History you didn't keep can't be rebuilt later.

What is the difference between a data lake and a database?

A database such as PostgreSQL or MySQL runs your application: many small reads and writes that must stay consistent. A lake stores large volumes of files for analysis and isn't built to handle an application's transactions.

If you are weighing this for your own product, we're happy to look at your sources and query patterns with you as part of our data and AI work.

Related Articles

August 11, 2026

MLOps Guide: What to Set Up First, and What Can Wait

MLOps gets a model into production and keeps it useful there. Here is the order we'd set it up in, with current MLflow and DVC examples, and what changes for LLM features.

Read More: MLOps Guide: What to Set Up First, and What Can Wait
August 9, 2026

Computer Vision Applications: Where It Works and Where It Struggles

Where computer vision works today, from inspection lines to invoices and medical scans, what makes some applications hard, and when a general vision model saves you training your own.

Read More: Computer Vision Applications: Where It Works and Where It Struggles
August 4, 2026

AI Agent Development: When You Need One and How to Build It

An AI agent is a language model working in a loop with tools. When you need one, the loop in Python, choosing a framework, keeping it safe, and what each run costs.

Read More: AI Agent Development: When You Need One and How to Build It